-
Notifications
You must be signed in to change notification settings - Fork 53
44 lines (38 loc) · 1.33 KB
/
git-builds.yaml
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
42
43
44
name: Git Builds
on:
schedule:
# At minute 17 past hour 8 and 14 (UTC) on every day-of-week from Monday through Thursday
# https://crontab.guru
- cron: '17 08,14 * * 1-5'
workflow_dispatch:
env:
ProjectFile: "src/NexusMods.App/NexusMods.App.csproj"
jobs:
transformInputs:
runs-on: ubuntu-latest
outputs:
ProjectFile: ${{ steps.setOutputs.outputs.projectFile }}
steps:
- name: Set Outputs
id: setOutputs
shell: pwsh
run: |
echo "projectFile=${{ env.ProjectFile }}" >> $env:GITHUB_OUTPUT
build-linux:
needs: [ transformInputs ]
uses: ./.github/workflows/build-linux-pupnet.yaml
with:
AppVersion: "0.0.1"
# this is a bit of a hack, you can't use environment variables here
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
ProjectFile: ${{ needs.transformInputs.outputs.ProjectFile }}
RetentionDays: 3
build-windows:
needs: [ transformInputs ]
uses: ./.github/workflows/build-windows-pupnet.yaml
with:
AppVersion: "0.0.1"
# this is a bit of a hack, you can't use environment variables here
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
ProjectFile: ${{ needs.transformInputs.outputs.ProjectFile }}
RetentionDays: 3