diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f00c08b8a..94dc3e048 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,14 +6,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install NPM dependencies - run: npm install - - name: Build - run: npm run build - - name: Upload build artifact - uses: actions/upload-artifact@v2 - with: - name: stremio-web - path: build + - name: Checkout + uses: actions/checkout@v2 + - name: Install NPM dependencies + run: npm install + - name: Build + run: npm run build + - name: Upload build artifact + uses: actions/upload-artifact@v2 + with: + name: stremio-web + path: build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6487d133a..313c9887c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,25 +8,25 @@ jobs: release: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install NPM dependencies - run: npm install - - name: Build - run: npm run build - - name: Zip build artifact - run: zip -r stremio-web.zip ./build - - name: Upload build artifact to GitHub release assets - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: stremio-web.zip - asset_name: stremio-web.zip - tag: ${{ github.ref }} - overwrite: true - - name: Upload build artifact to Netlify - run: | - curl -H "Content-Type: application/zip" \ - -H "Authorization: Bearer ${{ secrets.netlify_access_token }}" \ - --data-binary "@stremio-web.zip" \ - https://api.netlify.com/api/v1/sites/stremio-development.netlify.com/deploys + - name: Checkout + uses: actions/checkout@v2 + - name: Install NPM dependencies + run: npm install + - name: Build + run: npm run build + - name: Zip build artifact + run: zip -r stremio-web.zip ./build + - name: Upload build artifact to GitHub release assets + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: stremio-web.zip + asset_name: stremio-web.zip + tag: ${{ github.ref }} + overwrite: true + - name: Upload build artifact to Netlify + run: | + curl -H "Content-Type: application/zip" \ + -H "Authorization: Bearer ${{ secrets.netlify_access_token }}" \ + --data-binary "@stremio-web.zip" \ + https://api.netlify.com/api/v1/sites/stremio-development.netlify.com/deploys diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59284b2c8..a3ebba0ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,11 +6,11 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install NPM dependencies - run: npm install - - name: Test - run: npm test - - name: Lint - run: npm run lint + - name: Checkout + uses: actions/checkout@v2 + - name: Install NPM dependencies + run: npm install + - name: Test + run: npm test + - name: Lint + run: npm run lint