diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 866f61931..0d1073bab 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -8,6 +8,8 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v3 - name: Generate Swagger UI @@ -18,6 +20,6 @@ jobs: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish_dir: swagger-ui cname: api-docs.overseerr.dev diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 806d51bf0..e34a335c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,60 +42,60 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} run: npx semantic-release - build-snap: - name: Build Snap Package (${{ matrix.architecture }}) - needs: semantic-release - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - architecture: - - amd64 - - arm64 - - armhf - steps: - - name: Checkout Code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Switch to master branch - run: git checkout master - - name: Pull latest changes - run: git pull - - name: Prepare - id: prepare - run: | - git fetch --prune --tags - if [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/master ]]; then - echo "RELEASE=stable" >> $GITHUB_OUTPUT - else - echo "RELEASE=edge" >> $GITHUB_OUTPUT - fi - - name: Set Up QEMU - uses: docker/setup-qemu-action@v2 - with: - image: tonistiigi/binfmt@sha256:df15403e06a03c2f461c1f7938b171fda34a5849eb63a70e2a2109ed5a778bde - - name: Build Snap Package - uses: diddlesnaps/snapcraft-multiarch-action@v1 - id: build - with: - architecture: ${{ matrix.architecture }} - - name: Upload Snap Package - uses: actions/upload-artifact@v3 - with: - name: overseerr-snap-package-${{ matrix.architecture }} - path: ${{ steps.build.outputs.snap }} - - name: Review Snap Package - uses: diddlesnaps/snapcraft-review-tools-action@v1 - with: - snap: ${{ steps.build.outputs.snap }} - - name: Publish Snap Package - uses: snapcore/action-publish@v1 - env: - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_LOGIN }} - with: - snap: ${{ steps.build.outputs.snap }} - release: ${{ steps.prepare.outputs.RELEASE }} + # build-snap: + # name: Build Snap Package (${{ matrix.architecture }}) + # needs: semantic-release + # runs-on: ubuntu-22.04 + # strategy: + # fail-fast: false + # matrix: + # architecture: + # - amd64 + # - arm64 + # - armhf + # steps: + # - name: Checkout Code + # uses: actions/checkout@v3 + # with: + # fetch-depth: 0 + # - name: Switch to master branch + # run: git checkout master + # - name: Pull latest changes + # run: git pull + # - name: Prepare + # id: prepare + # run: | + # git fetch --prune --tags + # if [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/master ]]; then + # echo "RELEASE=stable" >> $GITHUB_OUTPUT + # else + # echo "RELEASE=edge" >> $GITHUB_OUTPUT + # fi + # - name: Set Up QEMU + # uses: docker/setup-qemu-action@v2 + # with: + # image: tonistiigi/binfmt@sha256:df15403e06a03c2f461c1f7938b171fda34a5849eb63a70e2a2109ed5a778bde + # - name: Build Snap Package + # uses: diddlesnaps/snapcraft-multiarch-action@v1 + # id: build + # with: + # architecture: ${{ matrix.architecture }} + # - name: Upload Snap Package + # uses: actions/upload-artifact@v3 + # with: + # name: overseerr-snap-package-${{ matrix.architecture }} + # path: ${{ steps.build.outputs.snap }} + # - name: Review Snap Package + # uses: diddlesnaps/snapcraft-review-tools-action@v1 + # with: + # snap: ${{ steps.build.outputs.snap }} + # - name: Publish Snap Package + # uses: snapcore/action-publish@v1 + # env: + # SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_LOGIN }} + # with: + # snap: ${{ steps.build.outputs.snap }} + # release: ${{ steps.prepare.outputs.RELEASE }} discord: name: Send Discord Notification diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml.disabled similarity index 100% rename from .github/workflows/snap.yaml rename to .github/workflows/snap.yaml.disabled diff --git a/.vscode/settings.json b/.vscode/settings.json index 1a2375712..589cec368 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,5 +19,6 @@ "typescript.preferences.importModuleSpecifier": "non-relative", "files.associations": { "globals.css": "tailwindcss" - } + }, + "i18n-ally.localesPaths": ["src/i18n/locale"] }