Skip to content

Commit

Permalink
Merge pull request #1040 from aziontech/dev
Browse files Browse the repository at this point in the history
Deploy to Production
  • Loading branch information
PatrickMenoti authored Dec 18, 2024
2 parents 06f19d3 + a63e36d commit 6207adf
Showing 1 changed file with 34 additions and 32 deletions.
66 changes: 34 additions & 32 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/github-tag-action@1.37.0
env:
RELEASE_BRANCHES: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Bump version and push tag
# id: tag_ver
# uses: anothrNick/github-tag-action@1.37.0
# env:
# RELEASE_BRANCHES: main
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Refresh git
run: git fetch --tags
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6207adf

Please sign in to comment.