Skip to content

Commit

Permalink
add artifacts and releases
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 17, 2024
1 parent 198ca31 commit f7ad7a7
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ jobs:
- {
name: "Windows Latest MSVC",
os: windows-latest,
artifact: win-x64,
}
- {
name: "Ubuntu_Latest_GCC",
os: ubuntu-latest,
artifact: linux-x64,
}
- {
name: "macOS Latest Clang",
os: macos-latest,
artifact: mac-arm64,
}

steps:
Expand Down Expand Up @@ -78,19 +81,16 @@ jobs:
npm ci
npm run build
#- name: Upload
# uses: actions/upload-artifact@v1
# with:
# path: ./${{ matrix.config.artifact }}
# name: ${{ matrix.config.artifact }}
#
#- name: Upload release asset
# if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'created')
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./${{ matrix.config.artifact }}
# asset_name: ${{ matrix.config.artifact }}.zip
# asset_content_type: application/zip
- name: Upload Artifact ⬆️
uses: actions/upload-artifact@v4
with:
path: ./dist/tintd*.vsix

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/tintd*.vsix
name: tintd-${{ matrix.os }}
overwrite: true

0 comments on commit f7ad7a7

Please sign in to comment.