Skip to content

Commit

Permalink
[SOL] Update workflow for manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Aug 3, 2024
1 parent b744316 commit fe918d3
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build compiler for linux and mac
name: Build compiler for Windows, Linux and Mac

on: [pull_request, push, workflow_dispatch]
on:
workflow_dispatch:
inputs:
version:
description: Version (e.g. 1.42)
required: false
type: string

jobs:
build:
Expand Down Expand Up @@ -34,16 +40,24 @@ jobs:

create_release:
name: Create Release
if: github.event.inputs.version != ''
needs: build
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v4
- name: Commit and push tag
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git commit -am "Publish solana-v${{ inputs.version }}"
git tag -a solana-v${{ inputs.version }} -m "Tag solana-v${{ inputs.version }}"
git push origin --follow-tags
- name: Download tarballs into zig-bootstrap-solana/
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create GH Release
uses: softprops/action-gh-release@v0.1.15
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: zig-*.tar.bz2

0 comments on commit fe918d3

Please sign in to comment.