diff --git a/.github/workflows/release-zip.yml b/.github/workflows/release-zip.yml index 1dd194b1..73045f0b 100644 --- a/.github/workflows/release-zip.yml +++ b/.github/workflows/release-zip.yml @@ -1,14 +1,27 @@ -name: Zip Files +name: Releases -on: [push] +on: + push: + tags: + - '*' jobs: - zip-files: + + build: runs-on: ubuntu-latest + permissions: + contents: write steps: - - uses: actions/checkout@v2 - - name: Archive result artifacts - uses: actions/upload-artifact@v3 - with: - name: origen-build-${{ github.sha }}.zip - path: ./ + - uses: actions/checkout@v3 + - uses: vimtor/action-zip@v1.1 + with: + files: ./ + dest: origen-${{github.ref_name}}.zip + - uses: ncipollo/release-action@v1 + with: + artifacts: "origen-${{github.ref_name}}.zip" + artifactErrorsFailBuild: "true" + draft: "true" + generateReleaseNotes: "true" + makeLatest: "true" + bodyFile: "body.md"