Skip to content

Commit

Permalink
chore(ci): reenable web deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Dec 6, 2022
1 parent 8dfb606 commit 64b4072
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
./docker-dev lint
- name: "Install deploy dependencies"
# if: ${{ endsWith(github.ref, '/master') || endsWith(github.ref, '/staging') || endsWith(github.ref, '/release') }}
if: ${{ endsWith(github.ref, '/master') || endsWith(github.ref, '/staging') || endsWith(github.ref, '/release') }}
run: |
sudo apt-get install brotli pigz parallel rename --yes -qq >/dev/null
Expand All @@ -167,25 +167,24 @@ jobs:
aws --version
- name: "Deploy web app"
# if: ${{ endsWith(github.ref, '/master') || endsWith(github.ref, '/staging') || endsWith(github.ref, '/release') }}
if: ${{ endsWith(github.ref, '/master') || endsWith(github.ref, '/staging') || endsWith(github.ref, '/release') }}
run: |
ls -al packages_rs/nextclade-web/.build/production/web/
# ./scripts/deploy_web.sh
./scripts/deploy_web.sh
# - name: "Invalidate Cloudfront cache"
# if: ${{ endsWith(github.ref, '/master') || endsWith(github.ref, '/staging') || endsWith(github.ref, '/release') }}
# run: |
# aws cloudfront create-invalidation \
# --distribution-id ${AWS_CLOUDFRONT_DISTRIBUTION_ID} \
# --paths "/*"
- name: "Invalidate Cloudfront cache"
if: ${{ endsWith(github.ref, '/master') || endsWith(github.ref, '/staging') || endsWith(github.ref, '/release') }}
run: |
aws cloudfront create-invalidation \
--distribution-id ${AWS_CLOUDFRONT_DISTRIBUTION_ID} \
--paths "/*"
- name: "Create and push git tag"
if: ${{ endsWith(github.ref, '/release') }}
run: |
curl -fsSL "https://github.com/cli/cli/releases/download/v2.10.1/gh_2.10.1_linux_amd64.tar.gz" | tar xz -C "${HOME}/bin" --strip-components=2 gh_2.10.1_linux_amd64/bin/gh
git config user.email "nextstrainbot@nextstrain.org"
git config user.name "nextstrain-bot"
git config user.email "${{ secrets.GIT_USER_EMAIL }}"
git config user.name "${{ secrets.GIT_USER_NAME }}"
pushd packages_rs/nextclade-web >/dev/null
Expand Down

0 comments on commit 64b4072

Please sign in to comment.