-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (38 loc) · 1 KB
/
build-test.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 & release to test-builds repo
on:
workflow_dispatch:
inputs:
branch:
description: "branch-name"
required: true
type: string
tag:
description: "tag-name"
required: true
type: string
jobs:
build:
uses: ./.github/workflows/build-branch.yml
with:
branch: ${{ inputs.branch }}
release:
runs-on: ubuntu-latest
needs: build
environment: build
permissions:
contents: write
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.bin_name }}
- name: verify token
run: |
echo "Length of ACCESS_TOKEN: ${#ACCESS_TOKEN}"
- name: Upload release to test repo
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.tag }}
files: ${{ needs.build.outputs.bin_name }}
repository: FaithLife-Community/test-builds
token: ${{ secrets.ACCESS_TOKEN }}