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