mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
.github/workflows/build.yml refactoring
This commit is contained in:
parent
6f1cd107ac
commit
97e059ae44
1 changed files with 10 additions and 7 deletions
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
@ -2,7 +2,7 @@ name: Release
|
|||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
permissions:
|
||||
|
@ -14,11 +14,14 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ macos-12, ubuntu-latest, windows-latest ]
|
||||
os:
|
||||
- macos-12
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
|
||||
steps:
|
||||
- name: Setup
|
||||
run: |
|
||||
run: |
|
||||
git config --global url."https://${{secrets.USER}}:${{secrets.TOKEN}}@github.com/".insteadOf "https://github.com/"
|
||||
git config --global url."https://${{secrets.USER}}:${{secrets.TOKEN}}@api.github.com/".insteadOf "https://api.github.com/"
|
||||
|
||||
|
@ -26,7 +29,7 @@ jobs:
|
|||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.22
|
||||
|
||||
|
||||
- name: Setup GO
|
||||
run: |
|
||||
go version
|
||||
|
@ -63,12 +66,12 @@ jobs:
|
|||
|
||||
- name: Update Addon Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: bash
|
||||
shell: bash
|
||||
run: ./update-ci.sh ${{secrets.USER}} ${{secrets.TOKEN}} ${{matrix.os}}
|
||||
|
||||
- name: Update Addon
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
shell: bash
|
||||
run: |
|
||||
./update-ci.sh ${{secrets.USER}} ${{secrets.TOKEN}} ${{matrix.os}} arm
|
||||
./update-ci.sh ${{secrets.USER}} ${{secrets.TOKEN}} ${{matrix.os}} amd
|
||||
|
@ -123,7 +126,7 @@ jobs:
|
|||
SENTRY_AUTH_TOKEN: ${{secrets.SENTRY_AUTH_TOKEN}}
|
||||
|
||||
- name: Make artifacts dir
|
||||
run: |
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
|
||||
- name: Cleanup artifacts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue