Skip to content

use manual workflow dispatch to publish artifacts #13

use manual workflow dispatch to publish artifacts

use manual workflow dispatch to publish artifacts #13

Workflow file for this run

name: Publish All
on:
pull_request:
branches: [main]
jobs:
ci:
name: Runs CI
uses: ./.github/workflows/ci.yml
secrets: inherit
with:
publish: true
tag-release:
name: Tag Release
needs: publish

Check failure on line 15 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish All

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 15, Col: 12): Job 'tag-release' depends on unknown job 'publish'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jrobsonchase/direnv-action@v0.7
- name: Tag Release
run: |
version="$(grep '^version =' Cargo.toml | head -n1 | awk -F\" '{print $2}')"
tag="v${version}"
git config user.name "GitHub Action"
git config user.email noreply@ngrok.com
echo "Version: ${version} tag: $tag"
echo "Fetching all tags in the repository"
git fetch --tags
if git rev-parse "refs/tags/$tag" >/dev/null 2>&1; then
echo "Tag $tag already exists, skipping tag creation."
else
echo "Tag $tag does not exist, pushing tag."
git tag -a -m "Version ${version}" $tag
git push --tags
fi