Commit 9ed7bca0 authored by 神楽坂玲奈's avatar 神楽坂玲奈

ci

ci

ci

revert ci

ci

ci

ci

ci

ci

ci

ci

ci
parent 6ab5029d
#!/bin/bash
set -x
set -o errexit
if [[ -z "$CI_COMMIT_TAG" ]]; then
export TRAVIS_BRANCH="_no_notarize"
fi
npm ci
npm run build
npm run dist:mac
...@@ -27,6 +27,7 @@ windows_bin: ...@@ -27,6 +27,7 @@ windows_bin:
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/mycard-mat/mycard-mat-windows.tar.gz | tar zxf - - wget -O - https://cdn01.moecube.com/ygopro-build-materials/mycard-mat/mycard-mat-windows.tar.gz | tar zxf -
windows: windows:
# image: stefanscherer/node-windows:12-build-tools
stage: build stage: build
dependencies: dependencies:
- windows_bin - windows_bin
...@@ -53,11 +54,11 @@ linux: ...@@ -53,11 +54,11 @@ linux:
- npm ci - npm ci
- npm run build - npm run build
- npm run dist - npm run dist
- ls - ls dist
artifacts: artifacts:
paths: paths:
- dist/mycard-* - dist/latest-linux.yml
- dist/mycard_* - dist/*.AppImage
macOS: macOS:
stage: build stage: build
tags: tags:
...@@ -69,14 +70,18 @@ macOS: ...@@ -69,14 +70,18 @@ macOS:
APPLE_ID_PASSWORD: $MACOS_NOTARIZE_PASSWORD APPLE_ID_PASSWORD: $MACOS_NOTARIZE_PASSWORD
TEAM_SHORT_NAME: $MACOS_ASC_PROVIDER TEAM_SHORT_NAME: $MACOS_ASC_PROVIDER
script: script:
- ./.ci/macos-build.sh - '[[ -z "$CI_COMMIT_TAG" ]] && export TRAVIS_BRANCH="_no_notarize"'
- ls - npm ci
- npm run build
- npm run dist
artifacts: artifacts:
paths: paths:
- dist/mycard-* - dist/latest-mac.yml
- dist/mycard_* - dist/*.dmg
- dist/*.blockmap
- dist/*.zip
upload_to_minio: deploy:
stage: deploy stage: deploy
dependencies: dependencies:
- macOS - macOS
...@@ -84,7 +89,9 @@ upload_to_minio: ...@@ -84,7 +89,9 @@ upload_to_minio:
- linux - linux
tags: tags:
- linux - linux
image: bitnami/aws-cli image:
name: amazon/aws-cli
entrypoint: [""]
script: script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/mycard-ci-test - aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/mycard-ci-test
# only: # only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment