mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 06:01:58 +00:00
fix ci part 4
fix ci part 5 fix ci part 6 fix ci part 7 fix ci part 8 fix ci part 9 fix ci part 10 fix ci part 11
This commit is contained in:
+31
-39
@@ -3,8 +3,8 @@ name: Builder
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
# schedule:
|
||||||
- cron: '0 13 * * *' # run at 1 PM UTC
|
# - cron: '0 13 * * *' # run at 1 PM UTC
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
release:
|
release:
|
||||||
@@ -116,55 +116,47 @@ jobs:
|
|||||||
- name: Prepare tag ⚙️
|
- name: Prepare tag ⚙️
|
||||||
id: ready_tag
|
id: ready_tag
|
||||||
run: |
|
run: |
|
||||||
shopt -s extglob
|
export VERSION=${{ steps.old_tag.outputs.tag }}
|
||||||
echo ::set-output name=${${{ steps.old_tag.outputs.tag }}#"-pre"}
|
export COMMIT=$(git log -1 --pretty=format:%h)
|
||||||
|
echo ::set-output name=tag_name::$(sed -r 's/-pre(.*)?$//' <<< $VERSION)-$COMMIT-pre
|
||||||
- name: Bump version ⏫
|
|
||||||
id: tag_version
|
|
||||||
uses: anothrNick/github-tag-action@1.39.0
|
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
with:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
WITH_V: true
|
|
||||||
INITIAL_VERSION: ${{ steps.ready_tag.outputs.name }}
|
|
||||||
|
|
||||||
- name: Push tag 📤
|
- name: Push tag 📤
|
||||||
uses: rickstaa/action-create-tag@v1.3.2
|
uses: rickstaa/action-create-tag@v1.3.2
|
||||||
if: ${{ steps.tag_version.outputs.new_tag && github.event_name == 'workflow_dispatch' }}
|
if: ${{ steps.ready_tag.outputs.tag_name && github.event_name == 'workflow_dispatch' }}
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.tag_version.outputs.new_tag }}-pre
|
tag: ${{ steps.ready_tag.outputs.tag_name }}
|
||||||
message: Nightly ${{ steps.tag_version.outputs.new_tag }}
|
message: Nightly ${{ steps.ready_tag.outputs.tag_name }}
|
||||||
|
|
||||||
- name: Release 📦
|
- name: Release 📦
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
with:
|
with:
|
||||||
name: Nightly ${{ steps.tag_version.outputs.new_tag }}
|
name: Prerelease ${{ steps.ready_tag.outputs.tag_name }}
|
||||||
tag_name: ${{ steps.tag_version.outputs.new_tag }}-pre
|
tag_name: ${{ steps.ready_tag.outputs.tag_name }}
|
||||||
files: ./dist/PluginLoader
|
files: ./dist/PluginLoader
|
||||||
prerelease: true
|
prerelease: true
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
||||||
- name: Bump prerelease ⏫
|
# - name: Bump prerelease ⏫
|
||||||
id: bump
|
# id: bump
|
||||||
if: ${{ github.event_name == 'schedule' }}
|
# if: ${{ github.event_name == 'schedule' }}
|
||||||
run: |
|
# run: |
|
||||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
# git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
echo ::set-output new_tag="nightly-$git_hash"
|
# echo ::set-output new_tag="nightly-$git_hash"
|
||||||
|
|
||||||
- name: Push tag 📤
|
# - name: Push tag 📤
|
||||||
uses: rickstaa/action-create-tag@v1.3.2
|
# uses: rickstaa/action-create-tag@v1.3.2
|
||||||
if: ${{ github.event_name == 'schedule' }}
|
# if: ${{ github.event_name == 'schedule' }}
|
||||||
with:
|
# with:
|
||||||
tag: ${{ steps.bump.outputs.new_tag }}
|
# tag: ${{ steps.bump.outputs.new_tag }}
|
||||||
message: Nightly ${{ steps.bump.outputs.new_tag }}
|
# message: Nightly ${{ steps.bump.outputs.new_tag }}
|
||||||
|
|
||||||
- name: Release 📦
|
# - name: Release 📦
|
||||||
uses: softprops/action-gh-release@v1
|
# uses: softprops/action-gh-release@v1
|
||||||
if: ${{ github.event_name == 'schedule' }}
|
# if: ${{ github.event_name == 'schedule' }}
|
||||||
with:
|
# with:
|
||||||
name: Nightly ${{ steps.bump.outputs.new_tag }}
|
# name: Nightly ${{ steps.bump.outputs.new_tag }}
|
||||||
tag_name: ${{ steps.bump.outputs.new_tag }}
|
# tag_name: ${{ steps.bump.outputs.new_tag }}
|
||||||
files: ./dist/PluginLoader
|
# files: ./dist/PluginLoader
|
||||||
prerelease: true
|
# prerelease: true
|
||||||
generate_release_notes: true
|
# generate_release_notes: true
|
||||||
|
|||||||
Reference in New Issue
Block a user