mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 11:50:02 +01:00
Create republish.yml
Try setting up github action to publish demo, following @harshithpabbati's work in https://github.com/harshithpabbati/image-sequencer/blob/main/.github/workflows/upstream.yml
This commit is contained in:
56
.github/workflows/republish.yml
vendored
Normal file
56
.github/workflows/republish.yml
vendored
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
name: Publish sequencer.publiclab.org demo
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
jobs:
|
||||||
|
merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Merge upstream
|
||||||
|
run: |
|
||||||
|
git config --global user.name 'jywarren'
|
||||||
|
git config --global user.email 'jeff@unterbahn.com'
|
||||||
|
git pull --unshallow
|
||||||
|
git checkout gh-pages
|
||||||
|
git remote add upstream https://github.com/publiclab/image-sequencer.git
|
||||||
|
git fetch upstream
|
||||||
|
git reset --hard upstream/main
|
||||||
|
npm run setup --force
|
||||||
|
|
||||||
|
grunt production
|
||||||
|
|
||||||
|
if [ ! -f CNAME ];
|
||||||
|
then
|
||||||
|
touch CNAME
|
||||||
|
fi
|
||||||
|
echo "sequencer.publiclab.org" > CNAME
|
||||||
|
|
||||||
|
rm -R docs/
|
||||||
|
rm -R test/
|
||||||
|
rm CONTRIBUTING.md
|
||||||
|
rm index.js
|
||||||
|
|
||||||
|
cp src/ui/prepareDynamic.js prepareDynamic.js
|
||||||
|
|
||||||
|
rm -R src/
|
||||||
|
mkdir -p src/ui/
|
||||||
|
mv prepareDynamic.js src/ui/prepareDynamic.js
|
||||||
|
|
||||||
|
git add .
|
||||||
|
git add -f node_modules/jquery/
|
||||||
|
git add -f node_modules/bootstrap/
|
||||||
|
git add -f node_modules/imgareaselect/
|
||||||
|
git add -f node_modules/gifshot/
|
||||||
|
git add -f node_modules/downloadjs/
|
||||||
|
git add -f node_modules/selectize/
|
||||||
|
git add -f node_modules/font-awesome/
|
||||||
|
git add -f node_modules/bootstrap-colorpicker/
|
||||||
|
git add -f node_modules/opencv.js
|
||||||
|
|
||||||
|
git add -f dist/image-sequencer.js
|
||||||
|
git add -f dist/image-sequencer-ui.js
|
||||||
|
|
||||||
|
git commit --no-verify -m "update main demo at sequencer.publiclab.org"
|
||||||
|
git push -f
|
||||||
Reference in New Issue
Block a user