-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1040 from aziontech/dev
Deploy to Production
- Loading branch information
Showing
1 changed file
with
34 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,12 +28,12 @@ jobs: | |
- name: Setting up a secure repository | ||
run: git config --global --add safe.directory /__w/azion/azion | ||
|
||
- name: Bump version and push tag | ||
id: tag_ver | ||
uses: anothrNick/[email protected] | ||
env: | ||
RELEASE_BRANCHES: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Bump version and push tag | ||
# id: tag_ver | ||
# uses: anothrNick/[email protected] | ||
# env: | ||
# RELEASE_BRANCHES: main | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Refresh git | ||
run: git fetch --tags | ||
|
@@ -79,30 +79,30 @@ jobs: | |
- name: set bin version to github env | ||
run: echo "BIN_VERSION=$(git describe --tags)" >> $GITHUB_ENV | ||
|
||
- uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
distribution: goreleaser | ||
version: 2.3.2 | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
API_URL: https://api.azionapi.net | ||
STORAGE_URL: https://api.azion.com | ||
AUTH_URL: https://sso.azion.com/api | ||
TEMPLATE_BRANCH: main | ||
SEGMENT_KEY: Irg63QfdvWpoANAVeCBEwfxXBKvoSSzt | ||
CHOCOLATEY_TOKEN: ${{ secrets.CHOCO_TOKEN }} | ||
|
||
|
||
bump_formula: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: dawidd6/action-homebrew-bump-formula@v3 | ||
with: | ||
token: ${{secrets.RELEASE_GITHUB_TOKEN}} | ||
formula: azion | ||
tag: ${{needs.build.outputs.binver}} | ||
# - uses: goreleaser/goreleaser-action@v6 | ||
# with: | ||
# distribution: goreleaser | ||
# version: 2.3.2 | ||
# args: release --clean | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
# API_URL: https://api.azionapi.net | ||
# STORAGE_URL: https://api.azion.com | ||
# AUTH_URL: https://sso.azion.com/api | ||
# TEMPLATE_BRANCH: main | ||
# SEGMENT_KEY: Irg63QfdvWpoANAVeCBEwfxXBKvoSSzt | ||
# CHOCOLATEY_TOKEN: ${{ secrets.CHOCO_TOKEN }} | ||
|
||
|
||
# bump_formula: | ||
# runs-on: ubuntu-latest | ||
# needs: build | ||
# steps: | ||
# - uses: dawidd6/action-homebrew-bump-formula@v3 | ||
# with: | ||
# token: ${{secrets.RELEASE_GITHUB_TOKEN}} | ||
# formula: azion | ||
# tag: ${{needs.build.outputs.binver}} | ||
|
||
publish-choco-package: | ||
runs-on: windows-latest | ||
|
@@ -163,12 +163,14 @@ jobs: | |
run: | | ||
# Ensure that the Chocolatey package is packed and pushed correctly | ||
choco pack chocolatey/azion.nuspec | ||
choco push chocolatey/azion.${{ needs.build.outputs.binver }}.nupkg --source https://push.chocolatey.org/ --api-key $env:CHOCO_API_KEY | ||
Write-Host "Listing files created by choco pack" | ||
Get-ChildItem -Force | Format-Table | ||
choco push D:\a\azion\azion\azion.${{ needs.build.outputs.binver }}.nupkg --source https://push.chocolatey.org/ --api-key $env:CHOCO_API_KEY | ||
shell: pwsh | ||
|
||
Publish-to-WinGet: | ||
runs-on: windows-latest | ||
needs: bump_formula | ||
needs: build | ||
steps: | ||
- uses: vedantmgoyal9/winget-releaser@main | ||
with: | ||
|