feat: add release workflow
This commit is contained in:
parent
2e0ed44f07
commit
c0a6304210
1 changed files with 37 additions and 0 deletions
37
.forgejo/workflows/release.yml
Normal file
37
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-json:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
profile:
|
||||||
|
- eng # Engineering
|
||||||
|
- swe # Software Development
|
||||||
|
fail-fast: true
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Combine resume parts
|
||||||
|
run: |
|
||||||
|
mkdir release
|
||||||
|
jq -s '.[0] * .[1]' json/{shared,headline-${{ matrix.profile }}}.json \
|
||||||
|
> release/resume-${{ matrix.profile }}.json
|
||||||
|
|
||||||
|
- name: Publish resumes
|
||||||
|
uses: actions/forgejo-release@v2.5.0
|
||||||
|
with:
|
||||||
|
url: https://git.martin.md
|
||||||
|
repo: radu/resume
|
||||||
|
direction: upload
|
||||||
|
tag: ${{ github.ref_name }}
|
||||||
|
sha: ${{ github.sha }}
|
||||||
|
release-dir: release
|
||||||
|
release-notes: "YOLO"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue