Skip to content

Commit

Permalink
Splitted create release and crate pack
Browse files Browse the repository at this point in the history
  • Loading branch information
francovaro committed Feb 2, 2024
1 parent bc9fbaa commit 13876f1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 29 deletions.
33 changes: 4 additions & 29 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Build pack
name: Create pack
on:
workflow_dispatch:
pull_request:
push:
tags:
- '*'
release:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pack:
release:
name: Generate pack
runs-on: ubuntu-22.04
steps:
Expand All @@ -29,25 +26,3 @@ jobs:
packchk-version: 1.3.98
gen-pack-script: ./gen_pack.sh
gen-pack-output: ./output

- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload release asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./output/*.pack
asset_name: ${{ github.ref }}.pack
asset_content_type: application/zip
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create release
on:
push:
tags:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: Create Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch tags
run: |
git fetch --tags --force
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

0 comments on commit 13876f1

Please sign in to comment.