From 8a28c6083db14bb5067df4fb57625ea222ea1dec Mon Sep 17 00:00:00 2001 From: metowolf Date: Mon, 17 Jul 2023 20:10:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8B=20=E6=9B=B4=E6=96=B0=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{vcard-----.md => vcard-create.md} | 0 .github/workflows/release.yml | 20 +++++++++++++++++++ .travis.yml | 18 ----------------- 3 files changed, 20 insertions(+), 18 deletions(-) rename .github/ISSUE_TEMPLATE/{vcard-----.md => vcard-create.md} (100%) create mode 100644 .github/workflows/release.yml delete mode 100644 .travis.yml diff --git a/.github/ISSUE_TEMPLATE/vcard-----.md b/.github/ISSUE_TEMPLATE/vcard-create.md similarity index 100% rename from .github/ISSUE_TEMPLATE/vcard-----.md rename to .github/ISSUE_TEMPLATE/vcard-create.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..0c2272b2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + branches: [ "master" ] + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + yarn install + yarn test + yarn build + gh release create $(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1) public/* \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e3e0ea58..00000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: node_js -node_js: - - '16' -before_script: - - yarn build -before_deploy: - - git config --local user.name "metowolf" - - git config --local user.email "i@i-meto.com" - - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)} - - git tag $TRAVIS_TAG -deploy: - provider: releases - skip_cleanup: true - api_key: $GITHUB_OAUTH_TOKEN - file_glob: true - file: public/* - tag_name: $TRAVIS_TAG - name: $TRAVIS_TAG