mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
feat(ci): auto bump palen1x
This commit is contained in:
1 parent
15d13529a8
commit
97138e24de
2 files changed
+24
-5
No files matched your search
@@ -313,7 +313,7 @@ jobs:
|
||||
|
||||
- name: Package
|
||||
run: |
|
||||
cd build
|
||||
cd build
|
||||
cpack -DCPACK_PACKAGE_FILE_NAME="palera1n-iphoneos-arm" \
|
||||
-DCPACK_PACKAGING_INSTALL_PREFIX="/usr/"
|
||||
cpack -DCPACK_PACKAGE_FILE_NAME="palera1n-iphoneos-arm64" \
|
||||
@@ -534,8 +534,8 @@ jobs:
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65
|
||||
with:
|
||||
name: v${{ steps.get_version.outputs.version }}
|
||||
tag_name: v${{ steps.get_version.outputs.version }}
|
||||
name: ${{ steps.get_version.outputs.version }}
|
||||
tag_name: ${{ steps.get_version.outputs.version }}
|
||||
files: |
|
||||
dist/*
|
||||
generate_release_notes: true
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
- name: Download debs from tag
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_TOKEN: ${{ env.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release download "${{ env.TAG }}" --pattern "palera1n-iphoneos-arm*.deb"
|
||||
|
||||
@@ -46,9 +46,28 @@ jobs:
|
||||
|
||||
cd upload
|
||||
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.name "$USERNAME"
|
||||
git config user.email "[email protected]"
|
||||
|
||||
git add .
|
||||
git commit -m "Update palera1n for ${{ env.TAG }}" || exit 0
|
||||
git push https://$USERNAME:[email protected]/$GH_REPO.git
|
||||
|
||||
- name: Bump palen1x
|
||||
if: github.repository == 'palera1n/palera1n'
|
||||
env:
|
||||
USERNAME: GitHub-Actions
|
||||
API_TOKEN: ${{ secrets.BUILD_GITHUB_TOKEN }}
|
||||
GH_REPO: palera1n/palen1x
|
||||
run: |
|
||||
git clone https://$USERNAME:[email protected]/$GH_REPO.git tag
|
||||
cd tag
|
||||
|
||||
git config --global user.name "$USERNAME"
|
||||
git config --global user.email "[email protected]"
|
||||
|
||||
git commit --allow-empty -m "bump to ${{ env.TAG }}"
|
||||
git push https://$USERNAME:[email protected]/$GH_REPO.git Alpine
|
||||
|
||||
git tag "${{ env.TAG }}"
|
||||
git push https://$USERNAME:[email protected]/$GH_REPO.git "${{ env.TAG }}"
|
||||
Reference in new issue
Block a user