This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zip and Release | |
on: | |
push: | |
paths: | |
- 'wikiartwallpaper@cankurttekin/**' | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Extract version from metadata.json | |
id: extract_version | |
run: | | |
VERSION=$(jq -r '.version' wikiartwallpaper@cankurttekin/metadata.json) | |
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV | |
- name: Zip the wikiartwallpaper@cankurttekin directory | |
run: zip -r [email protected] wikiartwallpaper@cankurttekin | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: v${{ env.RELEASE_VERSION }} | |
body: "This release was automatically generated, might be untested and only FOR GNOME 45 & 46." | |
files: [email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |