test
This commit is contained in:
139
.github/workflows/build-and-release.yml
vendored
139
.github/workflows/build-and-release.yml
vendored
@@ -56,78 +56,78 @@ jobs:
|
||||
name: checksums
|
||||
path: sha256sum.txt
|
||||
|
||||
build-windows:
|
||||
name: Build bsky-desktop (Windows)
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
ext: "exe"
|
||||
GITHUB_TOKEN: ${{ secrets.GHT }}
|
||||
# build-windows:
|
||||
# name: Build bsky-desktop (Windows)
|
||||
# runs-on: windows-latest
|
||||
# env:
|
||||
# ext: "exe"
|
||||
# GITHUB_TOKEN: ${{ secrets.GHT }}
|
||||
|
||||
steps:
|
||||
- name: Checkout git repo
|
||||
uses: actions/checkout@v3
|
||||
# steps:
|
||||
# - name: Checkout git repo
|
||||
# uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node and npm
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
# - name: Setup node and npm
|
||||
# uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: 16
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
# - name: Install dependencies
|
||||
# run: npm install
|
||||
|
||||
- name: Build (x64)
|
||||
run: npm run build -- --arch x64
|
||||
# - name: Build (x64)
|
||||
# run: npm run build -- --arch x64
|
||||
|
||||
- name: Build (arm64)
|
||||
run: npm run build -- --arch arm64
|
||||
# - name: Build (arm64)
|
||||
# run: npm run build -- --arch arm64
|
||||
|
||||
- name: Upload Windows Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
id: upload-artifact
|
||||
with:
|
||||
name: windows-artifacts
|
||||
path: |
|
||||
dist/*.exe
|
||||
dist/latest*.yml
|
||||
# - name: Upload Windows Artifacts
|
||||
# uses: actions/upload-artifact@v4
|
||||
# id: upload-artifact
|
||||
# with:
|
||||
# name: windows-artifacts
|
||||
# path: |
|
||||
# dist/*.exe
|
||||
# dist/latest*.yml
|
||||
|
||||
build-macos:
|
||||
name: Build bsky-desktop (macOS)
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
ext: "dmg"
|
||||
GITHUB_TOKEN: ${{ secrets.GHT }}
|
||||
# build-macos:
|
||||
# name: Build bsky-desktop (macOS)
|
||||
# runs-on: macos-latest
|
||||
# env:
|
||||
# ext: "dmg"
|
||||
# GITHUB_TOKEN: ${{ secrets.GHT }}
|
||||
|
||||
steps:
|
||||
- name: Checkout git repo
|
||||
uses: actions/checkout@v3
|
||||
# steps:
|
||||
# - name: Checkout git repo
|
||||
# uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node and npm
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
# - name: Setup node and npm
|
||||
# uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: 16
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
# - name: Install dependencies
|
||||
# run: npm install
|
||||
|
||||
- name: Build (x64)
|
||||
run: npm run build -- --arch x64
|
||||
# - name: Build (x64)
|
||||
# run: npm run build -- --arch x64
|
||||
|
||||
- name: Build (arm64)
|
||||
run: npm run build -- --arch arm64
|
||||
# - name: Build (arm64)
|
||||
# run: npm run build -- --arch arm64
|
||||
|
||||
- name: Upload macOS Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
id: upload-artifact
|
||||
with:
|
||||
name: macos-artifacts
|
||||
path: |
|
||||
dist/*.dmg
|
||||
dist/latest*.yml
|
||||
# - name: Upload macOS Artifacts
|
||||
# uses: actions/upload-artifact@v4
|
||||
# id: upload-artifact
|
||||
# with:
|
||||
# name: macos-artifacts
|
||||
# path: |
|
||||
# dist/*.dmg
|
||||
# dist/latest*.yml
|
||||
|
||||
release:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-linux, build-windows, build-macos]
|
||||
needs: [build-linux]
|
||||
outputs:
|
||||
version_tag: ${{ steps.version.outputs.version }}
|
||||
env:
|
||||
@@ -147,17 +147,17 @@ jobs:
|
||||
name: linux-artifacts
|
||||
path: dist/linux
|
||||
|
||||
- name: Download Windows Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: windows-artifacts
|
||||
path: dist/windows
|
||||
#- name: Download Windows Artifacts
|
||||
# uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# name: windows-artifacts
|
||||
# path: dist/windows
|
||||
|
||||
- name: Download macOS Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: macos-artifacts
|
||||
path: dist/macos
|
||||
#- name: Download macOS Artifacts
|
||||
# uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# name: macos-artifacts
|
||||
# path: dist/macos
|
||||
|
||||
- name: Display structure of downloaded files
|
||||
run: ls -R dist
|
||||
@@ -176,9 +176,9 @@ jobs:
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
dist/linux/*.AppImage
|
||||
dist/windows/*.exe
|
||||
dist/macos/*.dmg
|
||||
dist/combined.yml
|
||||
# dist/windows/*.exe
|
||||
# dist/macos/*.dmg
|
||||
# dist/combined.yml
|
||||
|
||||
aur:
|
||||
name: Publish to AUR
|
||||
@@ -205,7 +205,8 @@ jobs:
|
||||
echo ${{ steps.version.outputs.version }}
|
||||
new_checksum=$(awk 'NR==1 { print $1 }' ./sha256sum.txt)
|
||||
sed -i "s|sha256sums=('SKIP' 'SKIP')|sha256sums=('$new_checksum' 'SKIP')|" ./build/PKGBUILD
|
||||
sed -i "s/^pkgver=.*$/pkgver=${{ needs.release.outputs.version_tag }}/" ./build/PKGBUILD
|
||||
sed -i "s/^pkgver=.*$/pkgver=${{ steps.version.outputs.version }}/" ./build/PKGBUILD
|
||||
cat ./build/PKGBUILD
|
||||
|
||||
# - name: Publish AUR package
|
||||
# if: false
|
||||
|
Reference in New Issue
Block a user