name: Build on: workflow_dispatch: push: jobs: build: runs-on: ubuntu-latest steps: - name: "Create root directory" run: mkdir ./www-root - name: Run the build run: ./build.sh - name: Upload static files as artifact id: deployment uses: actions/upload-pages-artifact@v3 with: path: www-root 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