Update gha autobuild
This commit is contained in:
78
.github/workflows/buildapp.yml
vendored
78
.github/workflows/buildapp.yml
vendored
@@ -15,32 +15,33 @@ jobs:
|
|||||||
build-linux:
|
build-linux:
|
||||||
name: Build bsky-desktop (Linux)
|
name: Build bsky-desktop (Linux)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
artifact: ${{ steps.upload-artifact.outputs.artifact }}
|
||||||
env:
|
env:
|
||||||
ext: ".AppImage"
|
ext: ".AppImage"
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup node and npm
|
- name: Setup node and npm
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- name: Get npm version action
|
|
||||||
id: npmv
|
|
||||||
uses: pchynoweth/action-get-npm-version@1.0.1
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build (x64)
|
- name: Build (x64)
|
||||||
run: npm run build -- --arch x64
|
run: npm run build -- --arch x64
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
- name: Build (arm64)
|
||||||
|
run: npm run build -- --arch arm64
|
||||||
|
|
||||||
- name: Upload Linux Artifacts
|
- name: Upload Linux Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
|
id: upload-artifact
|
||||||
with:
|
with:
|
||||||
name: linux-artifacts
|
name: linux-artifacts
|
||||||
path: |
|
path: |
|
||||||
@@ -50,112 +51,121 @@ jobs:
|
|||||||
build-windows:
|
build-windows:
|
||||||
name: Build bsky-desktop (Windows)
|
name: Build bsky-desktop (Windows)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
outputs:
|
||||||
|
artifact: ${{ steps.upload-artifact.outputs.artifact }}
|
||||||
env:
|
env:
|
||||||
ext: ".exe"
|
ext: ".exe"
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup node and npm
|
- name: Setup node and npm
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- name: Get npm version action
|
|
||||||
id: npmv
|
|
||||||
uses: pchynoweth/action-get-npm-version@1.0.1
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build (x64)
|
- name: Build (x64)
|
||||||
run: npm run build -- --arch x64
|
run: npm run build -- --arch x64
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
- name: Build (arm64)
|
||||||
|
run: npm run build -- --arch arm64
|
||||||
|
|
||||||
- name: Upload Windows Artifacts
|
- name: Upload Windows Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
|
id: upload-artifact
|
||||||
with:
|
with:
|
||||||
name: windows-artifacts
|
name: windows-artifacts
|
||||||
path: |
|
path: |
|
||||||
dist/*.exe
|
dist/*.exe
|
||||||
|
dist/latest-windows.yml
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
name: Build bsky-desktop (macOS)
|
name: Build bsky-desktop (macOS)
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
outputs:
|
||||||
|
artifact: ${{ steps.upload-artifact.outputs.artifact }}
|
||||||
env:
|
env:
|
||||||
ext: ".dmg"
|
ext: ".dmg"
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup node and npm
|
- name: Setup node and npm
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- name: Get npm version action
|
|
||||||
id: npmv
|
|
||||||
uses: pchynoweth/action-get-npm-version@1.0.1
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build (x64)
|
- name: Build (x64)
|
||||||
run: npm run build -- --arch x64
|
run: npm run build -- --arch x64
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
- name: Build (arm64)
|
||||||
|
run: npm run build -- --arch arm64
|
||||||
|
|
||||||
- name: Upload macOS Artifacts
|
- name: Upload macOS Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
|
id: upload-artifact
|
||||||
with:
|
with:
|
||||||
name: macos-artifacts
|
name: macos-artifacts
|
||||||
path: |
|
path: |
|
||||||
dist/*.dmg
|
dist/*.dmg
|
||||||
|
dist/latest-macos.yml
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-linux, build-windows, build-macos]
|
needs: [build-linux, build-windows, build-macos]
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get app version
|
||||||
|
id: version
|
||||||
|
uses: pchynoweth/action-get-npm-version@1.0.1
|
||||||
|
|
||||||
- name: Download Linux Artifacts
|
- name: Download Linux Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-artifacts
|
name: linux-artifacts
|
||||||
path: dist/linux
|
path: dist/linux
|
||||||
|
|
||||||
- name: Download Windows Artifacts
|
- name: Download Windows Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows-artifacts
|
name: windows-artifacts
|
||||||
path: dist/windows
|
path: dist/windows
|
||||||
|
|
||||||
- name: Download macOS Artifacts
|
- name: Download macOS Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-artifacts
|
name: macos-artifacts
|
||||||
path: dist/macos
|
path: dist/macos
|
||||||
|
|
||||||
- name: Get npm version action
|
- name: Display structure of downloaded files
|
||||||
id: npmv
|
run: ls -R && ls -R dist && ls -R dist/linux && ls -R dist/windows && ls -R dist/macos
|
||||||
uses: pchynoweth/action-get-npm-version@1.0.1
|
|
||||||
|
|
||||||
- name: Upload Release
|
- name: Upload Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: qnblackcat/action-gh-release@master
|
uses: qnblackcat/action-gh-release@master
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: "v${{ steps.npmv.outputs.version }}"
|
tag_name: "v${{ steps.version.outputs.version }}"
|
||||||
name: "bsky-desktop v${{ steps.npmv.outputs.version }}"
|
name: "bsky-desktop v${{ steps.version.outputs.version }}"
|
||||||
files: |
|
files: |
|
||||||
dist/linux/*.AppImage
|
dist/linux/*.AppImage
|
||||||
dist/linux/latest-linux.yml
|
dist/linux/latest-linux.yml
|
||||||
dist/windows/*.exe
|
dist/windows/*.exe
|
||||||
|
dist/windows/latest-windows.yml
|
||||||
dist/macos/*.dmg
|
dist/macos/*.dmg
|
||||||
|
dist/macos/latest-macos.yml
|
Reference in New Issue
Block a user