From b26ab47f010ff62b713a2ff6248b11dabf9046ff Mon Sep 17 00:00:00 2001 From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Fri, 13 May 2022 16:27:58 +0530 Subject: [PATCH] Action to create zip-archive for Flatpak --- .github/workflows/archive.yml | 22 ++++++++++++++++++++++ .github/workflows/test.yml | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/archive.yml diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml new file mode 100644 index 0000000..7c2dd7f --- /dev/null +++ b/.github/workflows/archive.yml @@ -0,0 +1,22 @@ +name: "Upload zip-archive" +on: + release: + types: [published] + +jobs: + zip-archive: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3.0.2 + with: + submodules: true + - name: Create zip including submodules + run: | + cd .. + zip ${{ github.event.repository.name }}/${{ github.event.repository.name }}-${{ github.ref_name }}.zip ${{ github.event.repository.name }} -r + - name: Upload zip to release + uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 + with: + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}.zip \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31b62e7..0bf29b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: "Build pull request" on: - pull_request: - types: ['opened', 'synchronize'] + #pull_request: + #types: ['opened', 'synchronize'] jobs: publish-tauri: