1
0
Fork 0
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:
Grigory Efimov 2024-05-21 15:11:27 -03:00
parent 6f1cd107ac
commit 97e059ae44
No known key found for this signature in database
GPG key ID: 0A88C34DFA7FD939

View file

@ -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