Skip to content

Merge remote-tracking branch 'refs/remotes/origin/main' #35

Merge remote-tracking branch 'refs/remotes/origin/main'

Merge remote-tracking branch 'refs/remotes/origin/main' #35

Workflow file for this run

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
rm -f file-manager.zip
zip -r -9 file-manager.zip . -x ".git/*" ".github/*"
- 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
- uses: stefanzweifel/git-auto-commit-action@v5