diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index 53e0dd7..0000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,66 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x] - - steps: - - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: Install dependencies - run: npm ci - - - name: Build the application - run: npm run build - - - name: Zip the dist folder into single archive - uses: montudor/action-zip@v0.1.0 - with: - args: zip -qq -r ./release.zip ./dist - - - name: Get Time - id: current-time - uses: nanzm/get-time-action@v1.0 - with: - format: 'YYYYMMDDHHmmss' - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.current-time.outputs.time }} - release_name: Release ${{ steps.current-time.outputs.time }} - draft: false - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./release.zip - asset_name: Release.zip - asset_content_type: application/zip