Skip to content

Initial PR-based artifact update workflow #11

Initial PR-based artifact update workflow

Initial PR-based artifact update workflow #11

Workflow file for this run

name: Release
on:
pull_request:
push:
branches:
- main
paths:
- Artifacts.toml
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Determine artifact details
id: details
shell: julia --color=yes {0}
run: |
using Pkg.Types: read_project
include(joinpath(pwd(), "gen", "artifacts.jl"))
(; key, tarball_filename) = gh_artifact()
project = read_project("Project.toml")
open(ENV["GITHUB_OUTPUT"], "a") do io
println(io, "key=$key")
println(io, "tarball_filename=$tarball_filename")
println(io, "tag=v$(project.version)")
end
- uses: dawidd6/action-download-artifact@v3
id: action-artifact
with:
workflow: Build.yaml
name: ${{ needs.details.outputs.key }}
# - name: Build Changelog
# id: build_changelog
# uses: mikepenz/release-changelog-builder-action@v4
# - name: Publish Release
# uses: ncipollo/release-action@v1
# with:
# tag: ${{ steps.details.outputs.tag }}
# artifacts: ./${{ steps.details.outputs.tarball_filename }}
# body: ${{ steps.build_changelog.outputs.changelog }}