Skip to content

Commit

Permalink
Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendly0Fire committed Sep 20, 2024
1 parent 1995d03 commit f670346
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,35 +63,32 @@ jobs:
with:
name: nightly-${{ github.sha }}
path: |
bin/x64/Debug/gw2addon_gw2radial.dll
bin/x64/Debug/gw2addon_gw2radial.pdb
${{ github.workspace }}/bin/x64/Debug/gw2addon_gw2radial.dll
${{ github.workspace }}/bin/x64/Debug/gw2addon_gw2radial.pdb
- name: Move files for tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
mkdir -p bin/x64/Release/gw2radial
mkdir -p bin/x64/Debug/gw2radial
mv bin/x64/Release/gw2addon_gw2radial.dll bin/x64/Release/gw2radial/
mv bin/x64/Debug/gw2addon_gw2radial.dll bin/x64/Debug/gw2radial/
mv bin/x64/Debug/gw2addon_gw2radial.pdb bin/x64/Debug/gw2radial/
mkdir -p ${{ github.workspace }}/bin/x64/Release/gw2radial
mkdir -p ${{ github.workspace }}/bin/x64/Debug/gw2radial
mv ${{ github.workspace }}/bin/x64/Release/gw2addon_gw2radial.dll ${{ github.workspace }}/bin/x64/Release/gw2radial/
mv ${{ github.workspace }}/bin/x64/Debug/gw2addon_gw2radial.dll ${{ github.workspace }}/bin/x64/Debug/gw2radial/
mv ${{ github.workspace }}/bin/x64/Debug/gw2addon_gw2radial.pdb ${{ github.workspace }}/bin/x64/Debug/gw2radial/
- name: Zip files for tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
cd bin/x64/Release
7z a ../../gw2radial.zip gw2radial/
7z a ../../gw2radial_pdb.zip gw2addon_gw2radial.pdb
cd ../..
cd bin/x64/Debug
7z a ../../gw2radial_debug.zip gw2radial/
cd ../..
cd ../..
cd ${{ github.workspace }}/bin/x64/Release
7z a ${{ github.workspace }}/gw2radial.zip gw2radial/
7z a ${{ github.workspace }}/gw2radial_pdb.zip gw2addon_gw2radial.pdb
cd ${{ github.workspace }}/bin/x64/Debug
7z a .${{ github.workspace }}/gw2radial_debug.zip gw2radial/
- name: Create release draft for tag
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
draft: true
prerelease: ${{ contains(github.ref, '-pre') }}
files: |
gw2radial.zip
gw2radial_pdb.zip
gw2radial_debug.zip
${{ github.workspace }}/gw2radial.zip
${{ github.workspace }}/gw2radial_pdb.zip
${{ github.workspace }}/gw2radial_debug.zip

0 comments on commit f670346

Please sign in to comment.