File tree 1 file changed +3
-20
lines changed
1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
- runs-on : windows -latest
10
+ runs-on : ubuntu -latest
11
11
12
12
steps :
13
13
- name : Checkout code
36
36
37
37
- name : Zip Build Output
38
38
run : |
39
- powershell -Command "Compress-Archive -Path ./build/* -DestinationPath subnauticaib.zip"
40
-
41
- - name : Get Latest Tag
42
- id : get_tag
43
- run : |
44
- git fetch --tags
45
- latest_tag=$(git tag --sort=-v:refname | head -n 1)
46
- echo "latest_tag=${latest_tag}" >> $GITHUB_ENV
47
-
48
- - name : Increment Version
49
- id : increment_version
50
- run : |
51
- if [[ "${{ env.latest_tag }}" == "" ]]; then
52
- echo "version=1.0.0" >> $GITHUB_ENV
53
- else
54
- version=$(echo "${{ env.latest_tag }}" | awk -F. -v OFS=. '{$NF++;print}')
55
- echo "version=${version}" >> $GITHUB_ENV
56
- fi
39
+ zip -r subnauticaib.zip ./build/* # Use zip command for Linux
57
40
58
41
- name : Upload to Butler
59
42
run : |
60
- butler push subnauticaib.zip pyoneerc1/subnauticaib:latest --userversion ${{ env.version }} -- credentials ${{ secrets.BUTLER_CREDENTIALS }}
43
+ butler push subnauticaib.zip pyoneerc1/subnauticaib:latest --credentials ${{ secrets.BUTLER_CREDENTIALS }}
You can’t perform that action at this time.
0 commit comments