Skip to content

Commit c225cf6

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! ci: add action to push chocolatey package
1 parent 5647edd commit c225cf6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
env:
3131
# Necessary for Docker manifest
3232
DOCKER_CLI_EXPERIMENTAL: "enabled"
33+
outputs:
34+
version: ${{ steps.version.outputs.version }}
3335
steps:
3436
- uses: actions/checkout@v3
3537
with:
@@ -117,6 +119,9 @@ jobs:
117119
# AC_APIKEY_ID: ${{ secrets.AC_APIKEY_ID }}
118120
# AC_APIKEY_FILE: /tmp/apple_apikey.p8
119121

122+
- id: version
123+
run: echo "version=${CODER_RELEASE_VERSION}" >> $GITHUB_OUTPUT
124+
120125
# - name: Delete Apple Developer certificate and API key
121126
# run: rm -f /tmp/{apple_cert.p12,apple_cert_password.txt,apple_apikey.p8}
122127

@@ -248,13 +253,12 @@ jobs:
248253

249254
- name: ls build
250255
run: |
251-
git reset --hard
252256
ls -lh build
253257
254258
- name: Publish release
255259
run: |
256260
./scripts/publish_release.sh \
257-
${{ (github.event.inputs.dry_run || github.event.inputs.snapshot) && '--dry-run' }} \
261+
${{ (github.event.inputs.dry_run || github.event.inputs.snapshot) && '--dry-run' || '--version needs.release.outputs.version' }} \
258262
./build/*.msi \
259263
./build/*.zip \
260264
./build/*.tar.gz \

0 commit comments

Comments
 (0)