name: Publish Notebook on: workflow_dispatch: jobs: build: uses: ./.github/workflows/build.yml publish: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ./.github/actions/setup - run: sudo apt-get update - run: sudo apt-get install awscli - run: make -C src/web/notebook - run: ./dist/wafnb2html src/web/notebook/examples/drawing-with-forth.wafnb - 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 cp src/web/notebook/examples/drawing-with-forth.html s3://${{secrets.AWS_SITE_BUCKET}}/wafnb/drawing-with-forth/index.html