fix: projectVersion in environment
This commit is contained in:
parent
92a493b03a
commit
2ef3b1a0fe
16
.github/workflows/autobuild.yaml
vendored
16
.github/workflows/autobuild.yaml
vendored
@ -62,6 +62,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
proj-path: OpenTaiko/OpenTaiko.csproj
|
proj-path: OpenTaiko/OpenTaiko.csproj
|
||||||
|
|
||||||
|
- name: Store projectVersion in environment
|
||||||
|
run: |
|
||||||
|
echo "projectVersion=${{ steps.get-version.outputs.version }}" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
id: get-date
|
id: get-date
|
||||||
run: |
|
run: |
|
||||||
@ -78,7 +82,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Update CHANGELOG.md
|
- name: Update CHANGELOG.md
|
||||||
run: |
|
run: |
|
||||||
$version = $env:version
|
$version = $env:projectVersion
|
||||||
$date = $env:date
|
$date = $env:date
|
||||||
$messagePath = $env:messagePath
|
$messagePath = $env:messagePath
|
||||||
$changelogPath = "CHANGELOG.md"
|
$changelogPath = "CHANGELOG.md"
|
||||||
@ -112,7 +116,7 @@ jobs:
|
|||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
git add OpenTaiko/OpenTaiko.csproj
|
git add OpenTaiko/OpenTaiko.csproj
|
||||||
git add CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
git commit -m "Update changelog for version $env:version"
|
git commit -m "Update changelog for version $env:projectVersion"
|
||||||
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:${{ github.ref }}
|
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:${{ github.ref }}
|
||||||
|
|
||||||
- name: Build for Windows x64
|
- name: Build for Windows x64
|
||||||
@ -145,7 +149,7 @@ jobs:
|
|||||||
uses: mukunku/tag-exists-action@v1.6.0
|
uses: mukunku/tag-exists-action@v1.6.0
|
||||||
id: check-tag
|
id: check-tag
|
||||||
with:
|
with:
|
||||||
tag: ${{ env.version }}
|
tag: ${{ env.projectVersion }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
if: steps.check-tag.outputs.exists == 'false' && env.version != ''
|
if: steps.check-tag.outputs.exists == 'false' && env.version != ''
|
||||||
@ -153,8 +157,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.version }}
|
tag_name: ${{ env.projectVersion }}
|
||||||
release_name: OpenTaiko v${{ env.version }}
|
release_name: OpenTaiko v${{ env.projectVersion }}
|
||||||
body: |
|
body: |
|
||||||
Note: The releases do not contain skins nor songs.
|
Note: The releases do not contain skins nor songs.
|
||||||
Please download/update through the OpenTaiko Hub: https://github.com/OpenTaiko/OpenTaiko-Hub/releases
|
Please download/update through the OpenTaiko Hub: https://github.com/OpenTaiko/OpenTaiko-Hub/releases
|
||||||
@ -166,6 +170,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
file: "OpenTaiko.Win.x64.zip;OpenTaiko.Linux.x64.zip"
|
file: "OpenTaiko.Win.x64.zip;OpenTaiko.Linux.x64.zip"
|
||||||
overwrite: true
|
overwrite: true
|
||||||
tag_name: ${{ env.version }}
|
tag_name: ${{ env.projectVersion }}
|
||||||
draft: false
|
draft: false
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user