Update version.json #21
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: Release | |
on: | |
push: | |
paths: | |
- "version.json" | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-20.04 | |
permissions: write-all | |
steps: | |
- name: clone repo | |
uses: actions/checkout@v4 | |
- name: php version | |
run: | | |
php -v | |
- name: get version | |
run: | | |
VERSION=$(cat version.json | jq -r ".version") | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
- name: zip repo | |
run: zip -r -9 file-manager.zip . -x ".git/*" ".github/*" | |
- name: zip full | |
run: | | |
wget https://getcomposer.org/download/latest-stable/composer.phar | |
php composer.phar install | |
zip -r -9 file-manager-full.zip . -x ".git/*" ".github/*" "file-manager.zip" | |
- name: bump tag | |
uses: anothrNick/github-tag-action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CUSTOM_TAG: ${{ env.VERSION }} | |
- name: bump release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ env.VERSION }} | |
generate_release_notes: true | |
files: | | |
file-manager.zip | |
file-manager-full.zip |