From a273004e334e28a75f3da9f69f5c2ba5906bf75b Mon Sep 17 00:00:00 2001 From: leo-hydraulic <116815597+leo-hydraulic@users.noreply.github.com> Date: Thu, 9 Mar 2023 16:43:27 +0100 Subject: [PATCH] Create deploy-to-gh.yml --- .github/workflows/deploy-to-gh.yml | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/deploy-to-gh.yml diff --git a/.github/workflows/deploy-to-gh.yml b/.github/workflows/deploy-to-gh.yml new file mode 100644 index 0000000..caceba1 --- /dev/null +++ b/.github/workflows/deploy-to-gh.yml @@ -0,0 +1,54 @@ +name: Deploy to GitHub + +on: [workflow_dispatch] +jobs: + build: + uses: ./.github/workflows/build.yml + deploy: + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Download macOS ARM build + uses: actions/download-artifact@v3 + with: + name: build-macos-aarch64 + path: ./artifacts + + - name: Download macOS AMD64 build + uses: actions/download-artifact@v3 + with: + name: build-macos-amd64 + path: ./artifacts + + - name: Download Windows build + uses: actions/download-artifact@v3 + with: + name: build-windows-amd64 + # Windows is not in a tarball, so we extract to a separate directory. + path: ./artifacts/windows + + - name: Download Linux AMD64 build + uses: actions/download-artifact@v3 + with: + name: build-linux-amd64 + path: ./artifacts + + - name: Run Conveyor + uses: leo-hydraulic/flutter-demo@v1 + with: + command: make site + extra_flags: -Kapp.site.copy-to="${{ secrets.COPY_TO }}" + signing_key: ${{ secrets.SIGNING_KEY }} + agree_to_license: 1 + + - name: Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: false + title: "Flutter Demo" + files: output/*