From 5a8222da1f55cb7e62b64f441a3532655399b0f9 Mon Sep 17 00:00:00 2001 From: AndiMajore <andi.majore@googlemail.com> Date: Mon, 7 Jun 2021 19:32:22 +0200 Subject: [PATCH] try to push workflow file for secondary github --- workflows/main.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 workflows/main.yml diff --git a/workflows/main.yml b/workflows/main.yml new file mode 100644 index 00000000..f9d81888 --- /dev/null +++ b/workflows/main.yml @@ -0,0 +1,55 @@ +name: CI +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: set up nodeJS + uses: actions/setup-node@v2.1.5 + with: + node-version: 10.19.0 + - name: Run ng build + uses: colbyhill21/angular-full-ci@v1.0 + with: + command: run build:netex + - name: Rename + run: mv drugstone-build/styles.css drugstone-build/drugstone.css + - name: Save Release + uses: actions/upload-artifact@master + with: + name: Release + path: drugstone-build/drugstone.* + deploy: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Getting releases + uses: actions/download-artifact@master + with: + name: Release + - name: Publish + env: + GITHUB_TOKEN: "${{ secrets.RELEASE_REPO_SECRET }}" + run: | + APP_NAME=drugstone + VERSION_NAME="v9.0.1" + FILENAME="$APP_NAME-v$VERSION_NAME" + TAG="v{VERSION_NAME} + TAG="latest-master" + echo $APP_NAME + echo $VERSION_NAME + echo $FILENAME + echo $TAG + git clone https://github.com/AndiMajore/drugstone-releases.git + cd releases + gh release delete "{$TAG}" + gh release create -a "../${APP_NAME}.*" -m "Latest release of drugsTone: ${FILENAME} -p "${TAG}" -- GitLab