actions update
Some checks failed
Build / UI (20) (push) Failing after 5m44s
Build / UI (22) (push) Failing after 12m30s

This commit is contained in:
Arthur Wambst 2025-09-17 01:50:39 +02:00
parent a2cc6611ce
commit 9184512fa1
No known key found for this signature in database
2 changed files with 29 additions and 28 deletions

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dev
pull_request:
jobs:

View File

@ -39,38 +39,38 @@ jobs:
- name: Build
run: yarn build
- name: Create release branch and bump version
env:
REF: ${{ github.ref }}
run: |
BRANCH=release/${REF:10}
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout -b $BRANCH
git push -u origin $BRANCH
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php
git add config/app.php
git commit -m "ci(release): bump version"
git push
# - name: Create release branch and bump version
# env:
# REF: ${{ github.ref }}
# run: |
# BRANCH=release/${REF:10}
# git config --local user.email "github-actions[bot]@users.noreply.github.com"
# git config --local user.name "github-actions[bot]"
# git checkout -b $BRANCH
# git push -u origin $BRANCH
# sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php
# git add config/app.php
# git commit -m "ci(release): bump version"
# git push
- name: Create release archive
run: |
rm -rf node_modules vendor tests CODE_OF_CONDUCT.md CONTRIBUTING.md phpunit.xml shell.nix
tar -czf panel.tar.gz * .env.example
- name: Create checksum
run: |
SUM=`sha256sum panel.tar.gz`
echo $SUM > checksum.txt
#- name: Create checksum
# run: |
# SUM=`sha256sum panel.tar.gz`
# echo $SUM > checksum.txt
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
prerelease: ${{ contains(github.ref, 'rc') || contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
files: |
panel.tar.gz
checksum.txt
#- name: Create release
# id: create_release
# uses: softprops/action-gh-release@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# draft: true
# prerelease: ${{ contains(github.ref, 'rc') || contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
# files: |
# panel.tar.gz
# checksum.txt