Skip to content

Commit

Permalink
update workflow inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
wiyarmir committed Mar 15, 2024
1 parent 098052a commit 5ee5e70
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release_swiftpackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- '*'
workflow_dispatch:
inputs:
tagname:
type: string
required: true
description: tag to run the release on

permissions:
pull-requests: write
Expand Down Expand Up @@ -43,9 +48,10 @@ jobs:
- name: Create Swift package
run: ./gradlew -Psnapshot=false :solana-kotlin:createSwiftPackage

- name: Create release
- name: Upload artifact to release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tagname || github.ref }}
files: |
solana-kotlin/swiftpackage/SolanaKotlin.zip
Expand All @@ -54,10 +60,10 @@ jobs:
with:
path: _otherBranch
ref: swiftpackage

- name: Copy Package.swift
run: cp solana-kotlin/swiftpackage/Package.swift _otherBranch/Package.swift

- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
Expand Down

0 comments on commit 5ee5e70

Please sign in to comment.