-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (26 loc) · 1.15 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Pack and release content type
on: [push, workflow_dispatch]
jobs:
pack-and-release:
runs-on: ubuntu-latest
name: Pack and release
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pack library and dependencies into .h5p file
uses: boyum/[email protected] # https://github.com/boyum/pack-h5p-action
id: release-h5p
- name: Check if tag exists already # (to avoid replacing releases)
uses: mukunku/[email protected] # https://github.com/mukunku/tag-exists-action
id: check-tag
with:
tag: ${{ steps.release-h5p.outputs.version }}
- name: Release # (only if library is updated)
uses: marvinpinto/action-automatic-releases@latest # https://github.com/marvinpinto/actions/tree/master/packages/automatic-releases
if: ${{ github.ref == 'refs/heads/main' && steps.check-tag.outputs.exists == 'false' }}
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: ${{steps.release-h5p.outputs.version}}
prerelease: false
files: |
${{steps.release-h5p.outputs.filePath}}