-
Notifications
You must be signed in to change notification settings - Fork 34
41 lines (33 loc) · 892 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
name: Build and Release Libraries
permissions:
contents: write
packages: read
on:
release:
types:
- published
workflow_dispatch:
inputs:
tag:
description: 'Release Tag'
required: true
jobs:
add-libs:
runs-on: ubuntu-latest
steps:
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Libraries
run: |
TAG=${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || github.event.inputs.tag }}
docker run --rm -v ./libs:/libs -e TAG=$TAG ghcr.io/codewithkyrian/transformers-php:latest
ls libs
- name: Add Libraries to Release
uses: softprops/action-gh-release@v2
with:
files: |
libs/*