actions update
This commit is contained in:
parent
a2cc6611ce
commit
9184512fa1
@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user