From c6bc899cf07deb68986423899eb34225380cb82a Mon Sep 17 00:00:00 2001 From: Joshua Leivenzon Date: Thu, 7 Nov 2024 20:25:00 +1100 Subject: [PATCH] ci: Add build and deployment jobs --- .github/workflows/build.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..d6bce27 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,32 @@ +on: + push: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.24.x + - run: flutter build web + - id: deployment + uses: actions/upload-pages-artifact@v3 + with: + path: build/web + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file