Skip to content

Commit

Permalink
ci(action): add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
c0nstexpr committed May 28, 2024
1 parent 24e81ac commit cda9c4b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ jobs:
uses: ./.github/actions/cmake-build-and-test
with:
build-type: Release
build-dir: .build/Release
build-dir: .build/Release
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: stdsharp Release

on:
workflow_dispatch:
push:
branches: [main]
tags:
- '*'

permissions:
contents: write

jobs:
release-job:
name: release on tags
runs-on: ${{ matrix.os }}
continue-on-error: false

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest

steps:
- name: Archive
uses: thedoctor0/[email protected]
with:
type: zip
exclusions: |
.git/
.github/
- name: Release
uses: softprops/action-gh-release@v2
with:
files: release.zip
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cda9c4b

Please sign in to comment.