Skip to content

Commit

Permalink
Use github-script to push tag, add -j4
Browse files Browse the repository at this point in the history
  • Loading branch information
adisidev committed Oct 24, 2024
1 parent fea5c1b commit bd7f3c9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

- name: Build
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install -j$(nproc) --
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install -j4 --
# - name: Run CTest
# working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -87,16 +87,21 @@ jobs:
with:
name: cartogram

- name: Push short_sha Tag
uses: actions-ecosystem/action-push-tag@v1
- name: Push tag
uses: actions/github-script@v5
with:
tag: ${{ needs.set-outputs.outputs.short_sha }}
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ needs.set-outputs.outputs.short_sha }}',
sha: context.sha
})
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.set-outputs.outputs.short_sha }}
files: cartogram
body: "Rolling release ${{ needs.set-outputs.outputs.short_sha }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bd7f3c9

Please sign in to comment.