name: Build and Deploy to Pages on: push: branches: ["master"] workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: "pages" cancel-in-progress: false jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Get JBMAFP and build run: | wget https://github.com/mitjafelicijan/jbmafp/releases/download/v0.3/jbmafp.zip unzip jbmafp.zip chmod +x jbmafp ./jbmafp -b - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: './public' deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4