Skip to content

Create release.yml

Create release.yml #1

Workflow file for this run

name: "Release"
on:
push:
branches:
- "main"
paths:
- ".github/workflows/release.yml"
workflow_dispatch:
jobs:
archive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: tar czvf archive.tar.gz .
- uses: actions/upload-artifact@v4
with:
path: ./archive.tar.gz
name: tarball
release:
needs: archive
uses: chnm/.github/.github/workflows/create-release.yml@main
secrets: inherit
with:
github-run-id: "${{ github.run_id }}"
github-workflow: "${{ github.workflow }}"
github-workflow-ref: "${{ github.workflow_ref }}"
github-workflow-sha: "${{ github.workflow_sha }}"
github-workspace: "${{ github.workspace }}"
github-repository: "${{ github.repository }}"
github-repository-owner: "${{ github.repository_owner }}"
github-repository-name: "${{ github.event.repository.name }}"
github-repository-url: "${{ github.repository-url }}"
github-action-ref: "${{ github.action_ref }}"
github-event-name: "${{ github.event_name }}"
github-actor: "${{ github.actor }}"
github-triggering-actor: "${{ github.triggering_actor }}"
github-base-ref: "${{ github.base_ref }}"
github-ref-name: "${{ github.ref_name }}"
github-ref-type: "${{ github.ref_type }}"
github-ref: "${{ github.ref }}"
github-sha: "${{ github.sha }}"
build-artifact-name: "tarball"
release-artifact-tarball-filename: "archive.tar.gz"
release-tag-name-type: "semvar"