Skip to content

Commit

Permalink
[AXON-43] chore: fix CI warnings about release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sdzh-atlassian committed Jan 2, 2025
1 parent 51b1530 commit d7892ac
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 26 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ jobs:
node-version: 20
cache: 'npm'

- name: Evaluate version
run: |
PACKAGE_VERSION=$(./scripts/version/get-next-nightly.sh)
./scripts/version/assert-nightly.sh $PACKAGE_VERSION
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
echo "RELEASE_TAG=v${PACKAGE_VERSION}-nightly" >> $GITHUB_ENV
echo "Using version '${PACKAGE_VERSION}'"
- name: Set version
run: |
npm -no-git-tag-version --allow-same-version -f version $PACKAGE_VERSION
- name: Install dependencies
run: npm install

Expand All @@ -45,3 +57,17 @@ jobs:
env:
ATLASCODE_TEST_USER_API_TOKEN: ${{ secrets.ATLASCODE_TEST_USER_API_TOKEN }}
run: npm run test:e2e:docker

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_TAG }}-TEST
name: Release ${{ env.RELEASE_TAG }}-TEST
draft: false
prerelease: true
files: |
aaa-atlascode-${{ env.PACKAGE_VERSION }}.vsix
fail_on_unmatched_files: true
18 changes: 5 additions & 13 deletions .github/workflows/release-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,14 @@ jobs:
- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_TAG }}
release_name: Release ${{ env.RELEASE_TAG }}
name: Release ${{ env.RELEASE_TAG }}
draft: false
prerelease: true

- name: Upload Release Assets
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./atlascode-${{ env.PACKAGE_VERSION }}.vsix
asset_name: atlascode-${{ env.PACKAGE_VERSION }}.vsix
asset_content_type: application/zip
files: |
atlascode-${{ env.PACKAGE_VERSION }}.vsix
fail_on_unmatched_files: true
18 changes: 5 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,14 @@ jobs:
- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_TAG }}
release_name: Release ${{ env.RELEASE_TAG }}
name: Release ${{ env.RELEASE_TAG }}
draft: false
prerelease: false

- name: Upload Release Assets
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./atlascode-${{ env.PACKAGE_VERSION }}.vsix
asset_name: atlascode-${{ env.PACKAGE_VERSION }}.vsix
asset_content_type: application/zip
files: |
atlascode-${{ env.PACKAGE_VERSION }}.vsix
fail_on_unmatched_files: true

0 comments on commit d7892ac

Please sign in to comment.