Skip to content

Commit

Permalink
[merge] Merge pull request #550 from inexorgame/iceflower/nightly_rel…
Browse files Browse the repository at this point in the history
…easer

[ci] Rename devel to nightly release
  • Loading branch information
IAmNotHanni committed Jun 23, 2023
2 parents debaaba + 1db5b8b commit 3571d91
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Expand Up @@ -131,7 +131,7 @@ jobs:
name: build_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz
path: build_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz

- name: Prepare Devel Artifacts
- name: Prepare Nightly Artifacts
shell: bash
run: |
mkdir artifacts
Expand All @@ -141,13 +141,13 @@ jobs:
mkdir -p ./artifacts/shaders
cp ./shaders/*.spv ./artifacts/shaders/
cd artifacts
tar -zcvf "../devel_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz" *
tar -zcvf "../nightly_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz" *
- name: Upload Devel Artifacts
- name: Upload Nightly Artifacts
uses: actions/upload-artifact@v3
with:
name: devel_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz
path: devel_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz
name: nightly_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz
path: nightly_linux_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.tar.xz
retention-days: 7

windows:
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
name: build_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}
path: build_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.zip

- name: Prepare Devel Artifacts
- name: Prepare Nightly Artifacts
shell: pwsh
run: |
mkdir artifacts
Expand All @@ -254,11 +254,11 @@ jobs:
cp -r ./assets/. artifacts
mkdir -P ./artifacts/shaders
cp ./shaders/*.spv ./artifacts/shaders/
7z a -tzip "devel_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}" ./artifacts/*
7z a -tzip "nightly_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}" ./artifacts/*
- name: Upload Devel Artifacts
- name: Upload Nightly Artifacts
uses: actions/upload-artifact@v3
with:
name: devel_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}
path: devel_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.zip
name: nightly_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}
path: nightly_windows_${{ matrix.config.build_type }}_${{ matrix.config.compiler }}.zip
retention-days: 7
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Expand Up @@ -9,8 +9,8 @@ on:
- completed

jobs:
devel-release:
name: Development
nightly-release:
name: Nightly Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
Expand All @@ -30,7 +30,7 @@ jobs:
run_id: context.payload.workflow_run.id,
});
let matchArtifacts = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name.startsWith("devel_");
return artifact.name.startsWith("nightly_");
});
let fs = require('fs');
for (const artifact of matchArtifacts) {
Expand All @@ -53,8 +53,8 @@ jobs:
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git tag devel
git push -f origin tag devel
git tag nightly
git push -f origin tag nightly
- name: Release
shell: bash
Expand All @@ -65,5 +65,5 @@ jobs:
This release tag is continuously updated.
run: |
gh release delete devel -y || true
gh release create devel ./archives/* --title "Latest Development Release" --notes "${{ env.NOTES }}" --prerelease --target ${{ github.sha }}
gh release delete nightly -y || true
gh release create nightly ./archives/* --title "Nightly Release" --notes "${{ env.NOTES }}" --prerelease --target ${{ github.sha }}

0 comments on commit 3571d91

Please sign in to comment.