Merge pull request #4 from yazninja/renovate/oven-sh-setup-bun-1.x #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
permissions: | |
contents: write | |
discussions: write | |
on: | |
push: | |
tags: | |
- "v*" | |
branches: | |
- main | |
jobs: | |
build-win: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Init Bun | |
uses: oven-sh/[email protected] | |
with: | |
bun-version: latest | |
- name: Install Dependencies | |
run: bun install | |
- name: Build Windows | |
run: bun run build-win | |
- uses: actions/download-artifact@v4 | |
with: | |
path: dist/ | |
- name: Upload to Releases | |
uses: dothq/[email protected] | |
with: | |
version: ${{ github.ref_name }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
assets: '["dist/wuwa-tweaks.exe"]' | |
overwrite: true | |
# build-mac: | |
# runs-on: macos-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Init Bun | |
# uses: oven-sh/[email protected] | |
# with: | |
# bun-version: latest | |
# - name: Install Dependencies | |
# run: bun install | |
# - name: Build Mac | |
# run: bun run build-mac | |
# - uses: actions/download-artifact@v4 | |
# with: | |
# path: dist/ | |
# - name: Display structure of downloaded files | |
# run: ls -R dist/ | |
# - name: Upload to Releases | |
# uses: dothq/[email protected] | |
# with: | |
# version: ${{ github.ref_name }} | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# assets: '["dist/wuwa-tweaks-mac"]' | |
# overwrite: true | |
# build-linux: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Init Bun | |
# uses: oven-sh/[email protected] | |
# with: | |
# bun-version: latest | |
# - name: Install Dependencies | |
# run: bun install | |
# - name: Build Linux | |
# run: bun run build-linux | |
# - uses: actions/download-artifact@v4 | |
# with: | |
# path: dist/ | |
# - name: Display structure of downloaded files | |
# run: ls -R dist/ | |
# - name: Upload to Releases | |
# uses: dothq/[email protected] | |
# with: | |
# version: ${{ github.ref_name }} | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# assets: '["dist/wuwa-tweaks-linux"]' | |
# overwrite: true |