waforth/.github/workflows/publish-release.yml

35 lines
911 B
YAML
Raw Normal View History

2022-05-05 20:56:08 +02:00
name: Publish Release
on:
2022-05-26 17:56:18 +02:00
release:
types: [created]
2022-05-05 20:56:08 +02:00
jobs:
build:
2022-05-07 09:03:03 +02:00
uses: ./.github/workflows/build.yml
2022-05-05 20:56:08 +02:00
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2022-05-07 09:03:03 +02:00
- uses: ./.github/actions/setup
2022-05-05 20:56:08 +02:00
- run: yarnpkg publish --non-interactive
env:
2022-05-06 19:48:04 +02:00
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-site:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2022-05-07 09:03:03 +02:00
- uses: ./.github/actions/setup
2022-05-06 19:48:04 +02:00
- run: sudo apt-get install awscli
- run: yarnpkg build
- name: aws s3 sync
run: |
aws configure set region eu-central-1
aws configure set aws_access_key_id ${{secrets.AWS_ACCESS_KEY_ID}}
aws configure set aws_secret_access_key ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws s3 sync public/waforth/ s3://${{secrets.AWS_SITE_BUCKET}}/waforth/