Skip to content

Commit

Permalink
Build env update
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 20, 2024
1 parent 6cf4918 commit ca79b92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,16 @@ jobs:

- name: Prepare environment
run: |
BUILD_TAG=
echo "BUILD_NUMBER=${{ github.repository }}-${{ github.workflow }}-${{ github.run_id }}-ghactions" >> $GITHUB_ENV
echo "BUILD_COMMIT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
echo "BUILD_NUMBER=${{ github.repository}}-${{ github.workflow }}-${{ github.run_id }}-ghactions" >> $GITHUB_ENV
echo "BUILD_BRANCH=${{ github.ref }}" >> $GITHUB_ENV
echo "BUILD_BRANCH_SAFE=${{ github.ref }}" >> $GITHUB_ENV
echo "BUILD_TAG=${{ github.ref }}" >> $GITHUB_ENV
echo "RELEASE_BUILD
- name: Create bucket
run: |
go run mage.go -v MakeBucket
echo "BUILD_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "BUILD_BRANCH=${{ github.ref }}" >> $GITHUB_ENV
- name: Generate Env
run: go run mage.go -v GenerateEnvFile
go run mage.go -v GenerateEnvFile
- name: Create bucket
run: go run mage.go -v MakeBucket

- uses: actions/upload-artifact@v4
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Generate Env
run: go run mage.go -v GenerateEnvFile
- uses: actions/download-artifact@v4
with:
name: env.sh
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Remove bucket
run: go run mage.go -v RemoveBucket
# master only
Expand Down

0 comments on commit ca79b92

Please sign in to comment.