Skip to content

Commit

Permalink
CI: add git-archive-all (trigger on tag / test)
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 3, 2025
1 parent 3fc26aa commit 9b4c369
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/git_archive_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
tags:
- '**'

jobs:
draft-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout project source code
uses: actions/checkout@v3
with:
path: project

- name: Package source code including submodules
uses: qmonnet/git-archive-all-action@v1
with:
output-files: srcs-full-${{ github.ref_name }}.tar.gz
base-repo: project

- name: Create draft release and add artifacts
uses: softprops/action-gh-release@v1
with:
draft: true
files: srcs-full-*

0 comments on commit 9b4c369

Please sign in to comment.