diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 067b3ba..c12be63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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 \ No newline at end of file + - 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 +