Skip to content

Commit 9cc209a

Browse files
committed
ci: Update FTP upload path for release assets and add --ftp-create-dirs option.
1 parent 14c1d3a commit 9cc209a

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ on:
44
workflow_dispatch:
55
inputs:
66
version_type:
7-
description: 'The type of version bump to apply (major, minor, or patch)'
7+
description: "The type of version bump to apply (major, minor, or patch)"
88
required: true
9-
default: 'patch'
9+
default: "patch"
1010
type: choice
1111
options:
12-
- major
13-
- minor
14-
- patch
12+
- major
13+
- minor
14+
- patch
1515
prerelease:
16-
description: 'Whether this is a pre-release'
16+
description: "Whether this is a pre-release"
1717
required: true
1818
default: false
1919
type: boolean
@@ -61,8 +61,8 @@ jobs:
6161
- name: Bump version
6262
id: bump
6363
run: |
64-
NEW_TAG=$(python3 scripts/bump_version.py ${{ github.event.inputs.version_type }})
65-
echo "new_tag=${NEW_TAG}" >> "$GITHUB_OUTPUT"
64+
NEW_TAG=$(python3 scripts/bump_version.py ${{ github.event.inputs.version_type }})
65+
echo "new_tag=${NEW_TAG}" >> "$GITHUB_OUTPUT"
6666
6767
# Check if Cargo.toml was modified and commit if so
6868
- name: Commit and Push Version Bump
@@ -130,7 +130,7 @@ jobs:
130130
uses: webfactory/ssh-agent@v0.9.0
131131
with:
132132
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
133-
133+
134134
- name: Setup SSH KNOWN_HOSTS
135135
shell: bash
136136
run: |
@@ -139,23 +139,23 @@ jobs:
139139
- name: Install Dependencies on Windows
140140
if: runner.os == 'Windows'
141141
run: |
142-
choco install make --yes
143-
choco install nasm --yes
144-
choco install protoc --yes
145-
choco install llvm -y
146-
echo 'LIBCLANG_PATH=C:\Program Files\LLVM\bin' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
147-
echo "C:\Program Files\NASM" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
142+
choco install make --yes
143+
choco install nasm --yes
144+
choco install protoc --yes
145+
choco install llvm -y
146+
echo 'LIBCLANG_PATH=C:\Program Files\LLVM\bin' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
147+
echo "C:\Program Files\NASM" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
148148
149149
- name: Install Dependencies on MacOS
150150
if: runner.os == 'macOS'
151151
run: |
152-
brew install make protobuf
152+
brew install make protobuf
153153
154154
- name: Install Dependencies on Linux
155155
if: runner.os == 'Linux'
156156
run: |
157-
sudo apt-get update
158-
sudo apt-get install -y protobuf-compiler libxcb1-dev libx11-dev
157+
sudo apt-get update
158+
sudo apt-get install -y protobuf-compiler libxcb1-dev libx11-dev
159159
160160
- name: Install cross (if needed)
161161
if: ${{ matrix.cross }}
@@ -164,7 +164,7 @@ jobs:
164164
- name: Build Project on cross
165165
if: ${{ matrix.cross }}
166166
run: |
167-
cross build --workspace --release --target ${{ matrix.target }} --verbose
167+
cross build --workspace --release --target ${{ matrix.target }} --verbose
168168
169169
- name: Build Project
170170
if: ${{ !matrix.cross }}
@@ -220,7 +220,7 @@ jobs:
220220
for file in release_assets/*; do
221221
if [ -f "$file" ]; then
222222
echo "Uploading $file..."
223-
curl -T "$file" "ftp://${{ secrets.FOA_FTP_HOST }}/" --user "${{ secrets.FOA_FTP_NAME }}:${{ secrets.FOA_FTP_PASS }}"
223+
curl -T "$file" "ftp://${{ secrets.FOA_FTP_HOST }}/public_html/automator/" --user "${{ secrets.FOA_FTP_NAME }}:${{ secrets.FOA_FTP_PASS }}" --ftp-create-dirs
224224
fi
225225
done
226226

0 commit comments

Comments
 (0)