Skip to content

Commit

Permalink
ci: release to GitHub with action
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi authored Apr 1, 2024
1 parent b2e0b57 commit 46217c6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CI
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:
branches: [ main ]

Expand All @@ -19,3 +21,26 @@ jobs:
- name: Make
run: |
cd cpp-primer/labs/mim && make
publish:
name: Publishment
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: 20
architecture: x64
registry-url: https://registry.npmjs.org/
- name: Release to GitHub
run: |
npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 46217c6

Please sign in to comment.