Skip to content

Commit

Permalink
pipeline: update build.yml dependencies, fix missing artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
kirides committed Jan 5, 2024
1 parent afc7e6e commit 2bea335
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: msbuild /p:Configuration=${{matrix.configuration}} .

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.configuration }}
path: ${{ matrix.configuration }}/ddraw.dll
Expand All @@ -62,10 +62,10 @@ jobs:
echo "RELEASE_VERSION=${tagName}" >> $Env:GITHUB_ENV
echo "RELEASE_DIR=${dirName}" >> $Env:GITHUB_ENV
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

- name: Display structure of downloaded files
run: ls -R
run: tree

- name: Create distribution
working-directory: ${{env.GITHUB_WORKSPACE}}
Expand All @@ -84,10 +84,12 @@ jobs:
copy "Launcher\ddraw.dll" "${{env.RELEASE_DIR}}\"
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.RELEASE_DIR }}
path: ${{ env.RELEASE_DIR }}
# higher values don't get us much due to DLLs, libs, textures...
compression-level: 1

- name: zip distribution for nightly
if: github.ref_name == 'master'
Expand All @@ -110,25 +112,18 @@ jobs:
with:
delete_release: true
tag_name: nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create new nightly
if: github.ref_name == 'master'
# v1.13.0
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5
with:
name: Nightly
generateReleaseNotes: true
prerelease: true
draft: false
artifacts: "${{env.RELEASE_DIR}}.zip,{{env.RELEASE_DIR}}.zip.sha256"
omitDraftDuringUpdate: true
artifacts: "${{env.RELEASE_DIR}}.zip,${{env.RELEASE_DIR}}.zip.sha256"
tag: nightly
token: ${{ secrets.GITHUB_TOKEN }}

- name: Un-Draft Nightly
if: github.ref_name == 'master'
run: |
gh release edit ${{env.RELEASE_VERSION}} --draft=false
exit 0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 2bea335

Please sign in to comment.