-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (82 loc) · 3.54 KB
/
action.yml
File metadata and controls
106 lines (82 loc) · 3.54 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This is a basic workflow to help you get started with Actions
name: Publisher
# Controls when the workflow will run
on:
# 1:00 everyday
schedule:
- cron: '00 1 * * *'
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
actions: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Setup NuGet.exe for use with actions
# You may pin to the exact commit or the version.
# uses: NuGet/setup-nuget@296fd3ccf8528660c91106efefe2364482f86d6f
uses: NuGet/setup-nuget@v1.2.0
with:
# NuGet version to install. Can be `latest`, `preview`, a concrete version like `5.3.1`, or a semver range specifier like `5.x`.
nuget-version: latest
# NuGet API Key to configure.
nuget-api-key: ${{secrets.NUGET_KEY}}
# Runs a set of commands using the runners shell
- name: Pack & Push GPL nuget
shell: pwsh
run: |
cd Build
powershell ./GPL.ps1
- name: NuGet push
# You may pin to the exact commit or the version.
# uses: edumserrano/nuget-push@2c99a0cae97df631eb2526ddd171a55dd5228289
uses: edumserrano/nuget-push@v1.2.2
with:
# The API key for the NuGet server. Used when pushing the NuGet packages and symbols.
api-key: '${{secrets.NUGET_KEY}}'
working-directory: 'FFmpeg/ffmpeg-master-latest-win64-gpl-shared'
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: ffmpeg-gpl
# A file, directory or wildcard pattern that describes what to upload
path: FFmpeg/ffmpeg-master-latest-win64-gpl-shared/*.nupkg
# Runs a set of commands using the runners shell
- name: Pack & Push LGPL nuget
shell: pwsh
run: |
cd Build
powershell ./LGPL.ps1
- name: NuGet push
# You may pin to the exact commit or the version.
# uses: edumserrano/nuget-push@2c99a0cae97df631eb2526ddd171a55dd5228289
uses: edumserrano/nuget-push@v1.2.2
with:
# The API key for the NuGet server. Used when pushing the NuGet packages and symbols.
api-key: '${{secrets.NUGET_KEY}}'
working-directory: 'FFmpeg/ffmpeg-master-latest-win64-lgpl-shared'
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: ffmpeg-lgpl
# A file, directory or wildcard pattern that describes what to upload
path: FFmpeg/ffmpeg-master-latest-win64-lgpl-shared/*.nupkg
- name: Action Archiver
# You may pin to the exact commit or the version.
# uses: sibiraj-s/action-archiver@2f343a7eece20fe27cb9d3a8012d2c74b3030d79
uses: sibiraj-s/action-archiver@v1.1.2
with:
# A File or directory or glob pattern to archive
path: FFmpeg/**/*.nupkg