name: CD on: push: branches: [ master ] jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v2 - name: Set up Node.js uses: actions/setup-node@v1 with: node-version: '12' - name: Install nightly Rust toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: nightly override: true - name: Install wasm-pack uses: jetli/wasm-pack-action@v0.3.0 with: version: 'latest' - name: Install dependencies run: npm ci working-directory: ./app - name: Build the web application run: npm run build working-directory: ./app - name: Deploy to gh-pages run: | git config --global user.name $user_name git config --global user.email $user_email git remote set-url origin https://${github_token}@github.com/${repository} npm run deploy env: user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} repository: ${{ github.repository }} working-directory: ./app