6666 runs-on : ubuntu-24.04
6767 if : github.event_name != 'pull_request'
6868 outputs :
69- version : ${{ steps.setup.outputs.SETONIX_VERSION }}
70- build_number : ${{ steps.setup.outputs.SETONIX_BUILD_NUMBER }}
69+ version : ${{ steps.setup.outputs.SWAMP_VERSION }}
70+ build_number : ${{ steps.setup.outputs.SWAMP_BUILD_NUMBER }}
7171 needs :
7272 - build-server
7373 steps :
@@ -80,14 +80,14 @@ jobs:
8080 - name : Setup git
8181 id : setup
8282 run : |
83- SETONIX_VERSION_REGEX ="version:\s(.+)\+(.+)"
84- [[ $(grep -E "${SETONIX_VERSION_REGEX }" app/pubspec.yaml) =~ ${SETONIX_VERSION_REGEX } ]]
85- SETONIX_VERSION ="${BASH_REMATCH[1]}"
86- echo "SETONIX_VERSION =${SETONIX_VERSION }" >> $GITHUB_ENV
87- echo "SETONIX_VERSION =${SETONIX_VERSION }" >> $GITHUB_OUTPUT
88- SETONIX_BUILD_NUMBER ="${BASH_REMATCH[2]}"
89- echo "SETONIX_BUILD_NUMBER =${SETONIX_BUILD_NUMBER }" >> $GITHUB_ENV
90- echo "SETONIX_BUILD_NUMBER =${SETONIX_BUILD_NUMBER }" >> $GITHUB_OUTPUT
83+ SWAMP_VERSION_REGEX ="version:\s(.+)\+(.+)"
84+ [[ $(grep -E "${SWAMP_VERSION_REGEX }" app/pubspec.yaml) =~ ${SWAMP_VERSION_REGEX } ]]
85+ SWAMP_VERSION ="${BASH_REMATCH[1]}"
86+ echo "SWAMP_VERSION =${SWAMP_VERSION }" >> $GITHUB_ENV
87+ echo "SWAMP_VERSION =${SWAMP_VERSION }" >> $GITHUB_OUTPUT
88+ SWAMP_BUILD_NUMBER ="${BASH_REMATCH[2]}"
89+ echo "SWAMP_BUILD_NUMBER =${SWAMP_BUILD_NUMBER }" >> $GITHUB_ENV
90+ echo "SWAMP_BUILD_NUMBER =${SWAMP_BUILD_NUMBER }" >> $GITHUB_OUTPUT
9191 git config --global user.email "ci@linwood.dev"
9292 git config --global user.name "Linwood CI"
9393 - uses : actions/download-artifact@v4
@@ -109,9 +109,9 @@ jobs:
109109 - name : 📦 Zip artifacts
110110 run : |
111111 zip -r linwood-swamp-server-windows-x86_64.zip server-build-windows-x86_64/*
112- tar -C server-build-linux-x86_64 -czf linwood-setonix -server-linux-x86_64.tar.gz .
113- tar -C server-build-linux-arm64 -czf linwood-setonix -server-linux-arm64.tar.gz .
114- zip -r linwood-setonix -server-macos.zip server-build-macos/*
112+ tar -C server-build-linux-x86_64 -czf linwood-swamp -server-linux-x86_64.tar.gz .
113+ tar -C server-build-linux-arm64 -czf linwood-swamp -server-linux-arm64.tar.gz .
114+ zip -r linwood-swamp -server-macos.zip server-build-macos/*
115115 - name : Configure git
116116 if : ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' }}
117117 run : |
@@ -126,16 +126,16 @@ jobs:
126126 # Empty the output file if it exists
127127 > "$output_file"
128128
129- # Find and loop through all files starting with "linwood-setonix " in the current directory
130- for file in linwood-setonix *; do
129+ # Find and loop through all files starting with "linwood-swamp " in the current directory
130+ for file in linwood-swamp *; do
131131 # Check if the file exists (in case no matches were found)
132132 if [ -f "$file" ]; then
133133 # Append sha256sum to the output file in the format "hash filename"
134134 sha256sum "$file" >> "$output_file"
135135 fi
136136 done
137137
138- echo "SHA256 hashes for files starting with 'linwood-setonix ' saved to $output_file"
138+ echo "SHA256 hashes for files starting with 'linwood-swamp ' saved to $output_file"
139139 - name : 🚀 Deploy stable
140140 if : ${{ github.ref == 'refs/tags/stable' || (github.event_name == 'release' && !github.event.release.prerelease) }}
141141 uses : softprops/action-gh-release@v2
@@ -144,10 +144,10 @@ jobs:
144144 prerelease : true
145145 tag_name : stable
146146 files : |
147- linwood-setonix -server-linux-x86_64.tar.gz
148- linwood-setonix -server-linux-arm64.tar.gz
149- linwood-setonix -server-windows-x86_64.zip
150- linwood-setonix -server-macos.zip
147+ linwood-swamp -server-linux-x86_64.tar.gz
148+ linwood-swamp -server-linux-arm64.tar.gz
149+ linwood-swamp -server-windows-x86_64.zip
150+ linwood-swamp -server-macos.zip
151151 checksums.txt
152152 env :
153153 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -159,10 +159,10 @@ jobs:
159159 prerelease : true
160160 tag_name : nightly
161161 files : |
162- linwood-setonix -server-linux-x86_64.tar.gz
163- linwood-setonix -server-linux-arm64.tar.gz
164- linwood-setonix -server-windows-x86_64.zip
165- linwood-setonix -server-macos.zip
162+ linwood-swamp -server-linux-x86_64.tar.gz
163+ linwood-swamp -server-linux-arm64.tar.gz
164+ linwood-swamp -server-windows-x86_64.zip
165+ linwood-swamp -server-macos.zip
166166 checksums.txt
167167 env :
168168 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -172,10 +172,10 @@ jobs:
172172 if : startsWith(github.ref, 'refs/tags/v')
173173 with :
174174 files : |
175- linwood-setonix -server-linux-x86_64.tar.gz
176- linwood-setonix -server-linux-arm64.tar.gz
177- linwood-setonix -server-windows-x86_64.zip
178- linwood-setonix -server-macos.zip
175+ linwood-swamp -server-linux-x86_64.tar.gz
176+ linwood-swamp -server-linux-arm64.tar.gz
177+ linwood-swamp -server-windows-x86_64.zip
178+ linwood-swamp -server-macos.zip
179179 checksums.txt
180180 env :
181181 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments