From 541a7edc7eba76b320f2ecf5a9958ea4d557f043 Mon Sep 17 00:00:00 2001 From: TabascoEye Date: Mon, 19 Apr 2021 09:29:11 +0200 Subject: [PATCH] delete actions which will not work on fork --- .github/workflows/cleanup.yml | 26 ------------ .github/workflows/push-to-npm.yml | 67 ------------------------------- 2 files changed, 93 deletions(-) delete mode 100644 .github/workflows/cleanup.yml delete mode 100644 .github/workflows/push-to-npm.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml deleted file mode 100644 index ffa8273f..00000000 --- a/.github/workflows/cleanup.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Cleanup images and environments - -on: - pull_request: - types: [ closed ] - -# Enables BuildKit -env: - DOCKER_BUILDKIT: 1 - -jobs: - - delete_namespace: - runs-on: ubuntu-latest - - steps: - # Create a slugified value of the branch - - uses: rlespinasse/github-slug-action@3.1.0 - - - name: Cleanup - continue-on-error: true - uses: thecodingmachine/deeployer-cleanup-action@master - env: - KUBE_CONFIG_FILE: ${{ secrets.KUBE_CONFIG_FILE }} - with: - namespace: workadventure-${{ env.GITHUB_HEAD_REF_SLUG }} diff --git a/.github/workflows/push-to-npm.yml b/.github/workflows/push-to-npm.yml deleted file mode 100644 index 798e2530..00000000 --- a/.github/workflows/push-to-npm.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Push @workadventure/iframe-api-typings to NPM -on: - release: - types: [created] -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v2 - with: - node-version: '14.x' - registry-url: 'https://registry.npmjs.org' - - - name: Edit tsconfig.json to add declarations - run: "sed -i 's/\"declaration\": false/\"declaration\": true/g' tsconfig.json" - working-directory: "front" - - - name: Replace version number - run: 'sed -i "s#VERSION_PLACEHOLDER#${GITHUB_REF/refs\/tags\//}#g" package.json' - working-directory: "front/packages/iframe-api-typings" - - - name: Debug package.json - run: cat package.json - working-directory: "front/packages/iframe-api-typings" - - - name: Install Protoc - uses: arduino/setup-protoc@v1 - with: - version: '3.x' - - - name: "Install dependencies" - run: yarn install - working-directory: "front" - - - name: "Install messages dependencies" - run: yarn install - working-directory: "messages" - - - name: "Build proto messages" - run: yarn run proto && yarn run copy-to-front - working-directory: "messages" - - - name: "Create index.html" - run: ./templater.sh - working-directory: "front" - - - name: "Build" - run: yarn run build - env: - API_URL: "localhost:8080" - working-directory: "front" - - # We build the front to generate the typings of iframe_api, then we copy those typings in a separate package. - - name: Copy typings to package dir - run: cp front/dist/src/iframe_api.d.ts front/packages/iframe-api-typings/iframe_api.d.ts - - - name: Install dependencies in package - run: yarn install - working-directory: "front/packages/iframe-api-typings" - - - name: Publish package - run: yarn publish - working-directory: "front/packages/iframe-api-typings" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}