This commit is contained in:
Zoe Roux
2023-01-07 19:51:08 +09:00
parent aa38b34191
commit f5338fc8a8
12 changed files with 80 additions and 35 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ jobs:
if: github.event_name != 'pull_request'
with:
ref: ${{github.ref}}
check-name: tests
check-name: "Back tests"
repo-token: ${{secrets.GITHUB_TOKEN}}
running-workflow-name: analysis
allowed-conclusions: success,skipped,cancelled,neutral,failure
@@ -53,7 +53,7 @@ jobs:
if: github.event_name == 'pull_request'
with:
ref: ${{github.event.pull_request.head.sha}}
check-name: tests
check-name: "Back tests"
repo-token: ${{secrets.GITHUB_TOKEN}}
running-workflow-name: analysis
allowed-conclusions: success,skipped,cancelled,neutral,failure
+3 -2
View File
@@ -1,4 +1,4 @@
name: Update the documentation
name: Documentation
on:
push:
@@ -6,7 +6,8 @@ on:
- master
jobs:
Building:
doc:
name: Update the documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
+14 -16
View File
@@ -1,5 +1,10 @@
name: Native build
on: push
on:
push:
branches:
- master
- next
pull_request:
jobs:
update:
@@ -9,6 +14,9 @@ jobs:
run:
working-directory: ./front
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check for EXPO_TOKEN
run: |
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
@@ -16,14 +24,12 @@ jobs:
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
cache-dependency-path: front/yarn.lock
- name: Setup Expo
uses: expo/expo-github-action@v7
@@ -32,25 +38,18 @@ jobs:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Restore cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --immutable
- name: Build Mobile Release
run: yarn build:mobile --release-channel=build | tee log.txt
run: yarn build:mobile | tee log.txt
- name: Parse Asset URL
id: url
run: |
ASSET_URL=$(grep -eo 'https?://expo\.io/artifacts/[^ ]+' log.txt)
ASSET_URL=$(grep -oe 'https?://expo\.io/artifacts/[^ ]+' log.txt)
echo The android url is $ASSET_URL
echo "::set-output name=assetUrl::$ASSET_URL"
echo "assetUrl=$ASSET_URL" >> $GITHUB_OUTPUT
- name: Download APK Asset
run: wget -O kyoo.apk ${{ steps.url.outputs.assetUrl }}
@@ -60,11 +59,10 @@ jobs:
name: kyoo.apk
path: ./front/kyoo.apk
- name: Upload Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./example-${{ env.GITHUB_REF_SLUG }}.apk
asset_name: example-${{ env.GITHUB_REF_SLUG }}.apk
tag: ${{ github.ref }
tag: ${{ github.ref }}
+6 -12
View File
@@ -1,5 +1,9 @@
name: Native update
on: push
on:
push:
branches:
- master
- next
jobs:
update:
@@ -24,6 +28,7 @@ jobs:
with:
node-version: 16.x
cache: yarn
cache-dependency-path: front/yarn.lock
- name: Setup Expo
uses: expo/expo-github-action@v7
@@ -32,17 +37,6 @@ jobs:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Find yarn cache
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --immutable
+1
View File
@@ -8,6 +8,7 @@ on:
jobs:
release:
name: Release a new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+2 -1
View File
@@ -8,7 +8,8 @@ on:
jobs:
build:
test:
name: Run Robot Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+1
View File
@@ -8,6 +8,7 @@ on:
jobs:
tests:
name: Back tests
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:6.0
services: