Skip to content

Commit

Permalink
ci: update semantic release test
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 21, 2022
1 parent 36402da commit 1107e67
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Set old version variable and changelog
run: |
echo "old_version=`git describe --abbrev=0`" >> $GITHUB_ENV
echo "changelog=`semantic-release changelog`" >> $GITHUB_ENV
echo "changelog=`poetry run semantic-release changelog`" >> $GITHUB_ENV
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
Expand All @@ -66,18 +66,22 @@ jobs:
run: |
echo "release_version=`git describe --abbrev=0`" >> $GITHUB_ENV
- name: Generate release csv
if: "${{ env.old_version }}" != "${{ env.release_version }}"
run: |
mkdir -p release/SKSE/Plugins
poetry run ./vr_address_tools.py release/SKSE/Plugins/ generate -rv ${{ env.release_version }}
- name: Create .7z
if: "${{ env.old_version }}" != "${{ env.release_version }}"
uses: edgarrc/action-7z@v1
with:
args: 7z a -t7z -mx=9 vr_addresslib-${{ env.release_version }}.7z ./release/SKSE
- name: Sleep
# add delay so upload does not kill the release notes from semantic-release
if: "${{ env.old_version }}" != "${{ env.release_version }}"
run: |
sleep 5
- name: Upload zip to release
if: "${{ env.old_version }}" != "${{ env.release_version }}"
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GH_TOKEN }}
Expand All @@ -86,17 +90,17 @@ jobs:
tag: ${{ env.release_version }}
overwrite: true
- name: Setup Dotnet
if: ${{ env.old_version }} != ${{ env.release_version }}
if: "${{ env.old_version }}" != "${{ env.release_version }}"
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Download NexusUploader
if: ${{ env.old_version }} != ${{ env.release_version }}
if: "${{ env.old_version }}" != "${{ env.release_version }}"
run: dotnet tool install -g NexusUploader
- name: Upload files to Nexus
# https://github.com/agc93/nexus-uploader
if: ${{ env.old_version }} != ${{ env.release_version }}
if: "${{ env.old_version }}" != "${{ env.release_version }}"
env:
UNEX_COOKIES: ${{ secrets.UNEX_COOKIES }}
UNEX_APIKEY: ${{ secrets.UNEX_APIKEY }}
Expand Down

0 comments on commit 1107e67

Please sign in to comment.