FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ServiceStack/.github/workflows/github-push.yml at main · ServiceStack/ServiceStack · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ServiceStack
/
ServiceStack
Public
Notifications
You must be signed in to change notification settings
Fork
1.6k
Star
5.5k
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ServiceStack
/
.github
/
workflows
/
github-push.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
54 lines (47 loc) · 1.7 KB
Breadcrumbs
ServiceStack
/
.github
/
workflows
/
github-push.yml
Copy path
File metadata and controls
54 lines (47 loc) · 1.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
A GitHub Publish
permissions
:
packages
:
write
contents
:
write
on
:
workflow_dispatch
jobs
:
github-push
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
#
v5
-
name
:
Setup dotnet
uses
:
actions/setup-dotnet@v5
with
:
dotnet-version
:
10.0.x
-
name
:
Download artifact
uses
:
dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
#
v2
with
:
workflow
:
pre-release-pack.yml
#
workflow_conclusion: success
name
:
ServiceStack Packages
commit
:
${{ github.sha }}
path
:
./build/staging
-
name
:
Check output
working-directory
:
./build
run
:
|
cd staging
export number_of_packages=$(ls -1 | wc -l)
echo "number_of_packages=${number_of_packages}" >> $GITHUB_ENV
-
name
:
Clear packages
working-directory
:
./build/staging
shell
:
bash
run
:
|
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
cp ../clear-github-packages.sh .
chmod +x ./clear-github-packages.sh
./clear-github-packages.sh
-
name
:
Push to GitHub
working-directory
:
./build/staging
run
:
|
# Check if more than 48 packages
if [[ ${number_of_packages} -gt 48 ]]; then
echo "Pushing to GitHub Packages"
dotnet nuget push '*.nupkg' --source https://nuget.pkg.github.com/ServiceStack/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
else
echo 'Less files than expected, skipping push'
exit 1
fi
Back
|
FazBrowse Home
|
New Git URL