diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 66c139e..6ae998e 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -48,22 +48,22 @@ jobs: - name: Deploy the documentation to Meli (CoastalCommits Pages) run: | if [ -n "${{ github.base_ref }}" ]; then - release="${{ github.base_ref }}" + release="$(basename "{{ github.base_ref }}")" + export GITEA_TOKEN = ${{ secrets.COASTALCOMMITSTOKEN }} else - release="${{ github.ref }}" + release="$(basename "${{ github.ref }}")" fi echo "Deploying to Meli on branch $release" npx -p "@getmeli/cli" meli upload ./site \ - --url "http://pages.coastalcommits.com" \ - --site "${{ variables.MELI_SITE }}" \ + --url "https://pages.coastalcommits.com" \ + --site "${{ vars.MELI_SITE_ID }}" \ --token "${{ secrets.MELI_SITE_SECRET }}" \ - --release "$release" + --release "$release/$(git rev-parse HEAD)" \ + --branch "$release" echo "Deployed to Meli on branch $release" - env: - GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }} continue-on-error: true - name: Analysing the code with Pylint run: | diff --git a/.gitignore b/.gitignore index 2b23df4..0f14351 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .cache .vscode +site