From 85e49f0293a09c55632d5da404f77ed20190687c Mon Sep 17 00:00:00 2001 From: hxbb00 Date: Wed, 18 Oct 2023 09:21:31 +0800 Subject: [PATCH] Add files via upload --- .github/workflows/release-build.yml | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/release-build.yml diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..83f5db3 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,51 @@ +name: CI-release-build + +on: + workflow_dispatch: + +jobs: + create_package: + runs-on: ubuntu-20.04 + + steps: + - name: init env + shell: bash + run: | + pwd + mkdir -p ./artifact + + - name: set release date + run: | + echo "RELEASE_DATE=$(date +%Y%m%d-%H%M%s)" >> ${GITHUB_ENV} + + - name: download release artifact + uses: dawidd6/action-download-artifact@v2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + workflow: mingw64.yml + name: QGIS for Windows 64bit + path: ./artifact + repo: qgis/QGIS + + - name: download debug symbols + uses: dawidd6/action-download-artifact@v2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + workflow: mingw64.yml + name: QGIS for Windows 64bit Debug Symbols + path: ./artifact + repo: qgis/QGIS + + - name: Display structure of downloaded files + run: ls -al + working-directory: ./artifact + + - name: pack downloaded files + run: zip -r QGIS_Windows_x64.zip ./artifact + + - name: Release + uses: softprops/action-gh-release@v1 + with: + name: QGIS_Windows_x64 + tag_name: ${{ env.RELEASE_DATE }} + files: QGIS_Windows_x64.zip