Update create-config-zip.yml

This commit is contained in:
Nuno Coração 2024-12-02 23:16:27 +00:00 committed by GitHub
parent 3bdb1205d9
commit 07bf4e93e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,7 @@
name: Create ZIP name: Create ZIP
on: on:
push: release:
branches: ["main"] types: [published]
paths:
- 'config/_default/**'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -12,8 +10,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: zip -r config-default.zip config/_default - run: zip -r config-default.zip config/_default
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: config-default name: config-default
@ -22,4 +18,4 @@ jobs:
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: config-default.zip files: config-default.zip
tag_name: ${{ steps.get-latest-tag.outputs.tag }} tag_name: ${{ github.ref }}