Skip to content

Commit

Permalink
Archive in build step
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Jan 27, 2024
1 parent fff860f commit 71a7269
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,22 @@ jobs:
libgnutls28-dev
- name: Build Inspircd ${{matrix.version}}
run: bash install.sh ${{matrix.version}}
- name: Archive Artifacts
run: tar cvzf inspircd.${{matrix.version}}.${{matrix.os}}.tar.gz run/
- id: commit
uses: prompt/actions-commit-hash@v3
- name: Upload archives
uses: actions/upload-artifact@v4
with:
name: inspircd.${{matrix.version}}.${{matrix.os}}
path: run/
path: inspircd*.tar.gz
if-no-files-found: error
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
- name: Archive Artifacts
run: |
find . -depth 1 -name 'inspircd.*' -type d -exec tar cvzf {}.tar.gz {}/
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand All @@ -61,4 +60,4 @@ jobs:
prerelease: true
title: "Development Build"
files: |
inspircd.*.tar.gz
inspircd*.tar.gz

0 comments on commit 71a7269

Please sign in to comment.