name: Release on: push: tags: - v* env: ARTIFACTS_PATH: artifacts RELEASE_PATH: release jobs: build: runs-on: ubuntu-latest strategy: matrix: profile: - eng # Engineering - swe # Software Development fail-fast: false # The resumes are independent steps: - name: Checkout code uses: actions/checkout@v4 - name: Combine resume parts run: | mkdir ${{ env.ARTIFACTS_PATH }} jq -s '.[0] * .[1]' json/{shared,headline-${{ matrix.profile }}}.json \ > ${{ env.ARTIFACTS_PATH }}/resume-${{ matrix.profile }}.json - name: Upload artifacts uses: forgejo/upload-artifact@v4 # temporary fork until actions/upload-artifact supports GHES with: name: json-resumes path: ${{ env.ARTIFACTS_PATH }}/ publish: needs: [build] runs-on: ubuntu-latest permissions: contents: write steps: - name: Download artifacts uses: forgejo/download-artifact@v4 # temporary fork until actions/download-artifact supports GHES with: name: json-resumes path: ${{ env.RELEASE_PATH }}/ - name: Publish resumes uses: actions/forgejo-release@v2.5.0 with: url: ${{ env.GITHUB_SERVER_URL }} repo: ${{ env.GITHUB_REPOSITORY }} direction: upload tag: "${{ env.GITHUB_REF_NAME }}" sha: "${{ env.GITHUB_SHA }}" release-dir: ${{ env.RELEASE_PATH }} token: ${{ secrets.GITHUB_TOKEN }} release-notes: "YOLO"