mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
add github run only when pushing version to s3 and server
This commit is contained in:
parent
cb05cbf2de
commit
390bb40ced
8
.github/workflows/publish.yaml
vendored
8
.github/workflows/publish.yaml
vendored
@ -44,8 +44,8 @@ jobs:
|
||||
- name: Set env variable with version
|
||||
run: |
|
||||
CURRENT_VERSION="$(curl --silent "https://app.gitbutler.com/releases" | jq -r '.version')"
|
||||
NEXT_VERSION=$(./scripts/next.sh "$CURRENT_VERSION" "${{ inputs.bump }}")
|
||||
echo "version=$NEXT_VERSION-${{ github.run_number }}" >> $GITHUB_ENV
|
||||
NEXT_VERSION=$(./scripts/next.sh "${CURRENT_VERSION}" "${{ inputs.bump }}")
|
||||
echo "version=$NEXT_VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Build binary
|
||||
run: |
|
||||
@ -69,7 +69,7 @@ jobs:
|
||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
aws_bucket: "releases.gitbutler.com"
|
||||
source_dir: "release/"
|
||||
destination_dir: "releases/${{ env.version }}"
|
||||
destination_dir: "releases/${{ env.version }}-${{ github.run_number }}"
|
||||
|
||||
# tell our server to update with the version number
|
||||
- name: Tell our server to update
|
||||
@ -78,4 +78,4 @@ jobs:
|
||||
--request POST \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'X-Auth-Token: ${{ secrets.BOT_AUTH_TOKEN }}' \
|
||||
--data '{"version":"${{ env.version }}"}'
|
||||
--data '{"version":"${{ env.version }}-${{ github.run_number }}"}'
|
||||
|
Loading…
Reference in New Issue
Block a user