Skip to content

Commit

Permalink
fix release drafter 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus committed Aug 3, 2023
1 parent 1eb1cd1 commit b48cbc3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@ jobs:
zipBall: true
out-file-path: 'dev'

- name: Declare Version Variables
- name: Declare Version Variable
id: ref
shell: bash
run: |
7z x "${{ github.workspace }}/dev/geode-nightly.zip" -o"${{ github.workspace }}/dev"
unzip "${{ github.workspace }}/dev/geode-nightly.zip"
echo "version=$(cat ${{ github.workspace }}/dev/geode-nightly/VERSION | xargs)" >> $GITHUB_OUTPUT
echo "hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
- name: Move Files
run: |
mv dev/geode-${{ steps.ref.outputs.hash }}-mac.zip geode-${{ steps.ref.outputs.version }}-mac.zip
mv dev/geode-${{ steps.ref.outputs.hash }}-win.zip geode-${{ steps.ref.outputs.version }}-win.zip
mv dev/geode-installer-${{ steps.ref.outputs.hash }}-mac.pkg geode-installer-${{ steps.ref.outputs.version }}-mac.pkg
mv dev/geode-installer-${{ steps.ref.outputs.hash }}-win.exe geode-installer-${{ steps.ref.outputs.version }}-win.exe
mv dev/geode-installer-*-mac.pkg geode-installer-${{ steps.ref.outputs.version }}-mac.pkg
mv dev/geode-installer-*-win.exe geode-installer-${{ steps.ref.outputs.version }}-win.exe
mv dev/geode-*-mac.zip geode-${{ steps.ref.outputs.version }}-mac.zip
mv dev/geode-*-win.zip geode-${{ steps.ref.outputs.version }}-win.zip
- name: Create Draft Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit b48cbc3

Please sign in to comment.