mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 23:29:54 -06:00
Try to build only on tags
This commit is contained in:
parent
1fbd9b65cf
commit
4599128537
1 changed files with 3 additions and 31 deletions
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
|
|
@ -35,35 +35,7 @@ jobs:
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files:
|
files: grammar-with-artifacts.zip
|
||||||
grammar-with-artifacts.zip
|
make_latest: true
|
||||||
|
|
||||||
# release:
|
|
||||||
# needs: build
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - name: Download the artifact
|
|
||||||
# uses: actions/download-artifact@v3
|
|
||||||
# with:
|
|
||||||
# name: tree-sitter-grammar-release
|
|
||||||
#
|
|
||||||
# - name: Create GitHub Release
|
|
||||||
# id: create_release
|
|
||||||
# uses: actions/create-release@v1
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
|
|
||||||
# with:
|
|
||||||
# tag_name: v${{ github.run_number }}
|
|
||||||
# release_name: Release v${{ github.run_number }}
|
|
||||||
# draft: false
|
|
||||||
# prerelease: false
|
|
||||||
#
|
|
||||||
# - name: Upload zip file to GitHub release
|
|
||||||
# uses: actions/upload-release-asset@v1
|
|
||||||
# with:
|
|
||||||
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
# asset_path: ./tree-sitter-grammar-release.zip
|
|
||||||
# asset_name: tree-sitter-grammar-release.zip
|
|
||||||
# asset_content_type: application/zip
|
|
||||||
#
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue