Skip to content

Commit

Permalink
revert publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyn committed Jul 17, 2024
1 parent 77a2ca8 commit 3f04635
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
working-directory: ./publish
- run: node publish/information/index.js
id: data

publish-npm:
needs:
- getinfo
Expand All @@ -33,4 +33,37 @@ jobs:
env:
TAG: ${{ needs.getinfo.outputs.npmtag }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


publishsite:
needs: getinfo
runs-on: ubuntu-latest
if: needs.getinfo.outputs.websites3bucket != ''
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- run: npm install
- run: npm run site:install
- run: npm run site:crowdin:sync
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- run: npm run site:build
- uses: jakejarvis/[email protected]
with:
args: --follow-symlinks --delete --cache-control 's-maxage=604800, max-age=0'
env:
AWS_S3_BUCKET: ${{ needs.getinfo.outputs.websites3bucket }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-2'
SOURCE_DIR: 'docs/build'
- name: Purge Cloudflare Cache
run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE/purge_cache" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'
env:
TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
ZONE: ${{ secrets.CLOUDFLARE_ZONE }}

0 comments on commit 3f04635

Please sign in to comment.