From 39ca4f7e752aede0dc2700cf0a160b698901dbce Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 14 Jun 2024 13:48:26 +0300 Subject: [PATCH 1/3] ci(dependabot): outdated actions Signed-off-by: Lachezar Lechev --- .github/dependabot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..3bfddcb86 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +# Check for outdated actions +updates: + - package-ecosystem: "github-actions" + directory: "/" + # Check for updates every Monday + schedule: + interval: "weekly" \ No newline at end of file From 31041b62a8522086444414067256cb8a37510eb3 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 14 Jun 2024 13:49:15 +0300 Subject: [PATCH 2/3] fix(build): Staging with branch names like `feat/my-feature` do not get deployed Signed-off-by: Lachezar Lechev --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66ce0cc6c..10bd428a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install NPM dependencies run: npm ci - name: Build @@ -19,10 +19,15 @@ jobs: run: npm test - name: Lint run: npm run lint + # Create recursivelly the destiantion dir with + # "--parrents where no error if existing, make parent directories as needed." + - run: mkdir -p ./build/${{ github.ref_name }} - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build + # in stremio, we use `feat/features-name` or `fix/this-bug` + # so we need a recursive creation of the destination dir destination_dir: ${{ github.ref_name }} allow_empty_commit: true From 6fceac681f997333b114657960cffa4810894655 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 14 Jun 2024 14:16:12 +0300 Subject: [PATCH 3/3] ci(build): allow for manual dispatch of the build action Signed-off-by: Lachezar Lechev --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10bd428a9..be78ccbd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,12 @@ name: Build on: + push: branches: - '**' + # Allow manual dispatch in GH + workflow_dispatch: jobs: build: