ci(release): set perms (#3)

* ci(release): set perms

* docs: update ci/cd release workflow section
This commit is contained in:
uncenter 2024-05-18 13:06:40 -04:00 committed by GitHub
parent 68add75ec3
commit 9de62c73e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 8 deletions

View File

@ -4,6 +4,9 @@ on:
push:
tags: ["v*"]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest

View File

@ -87,15 +87,9 @@ The project under `codegen` directory is used to generate the library based on t
mv -iv out/catppuccin.gleam ../src/
```
## 🏗️ Setting Up CI/CD Release Workflow
## 🏗️ CI/CD Release Workflow
1. Create GitHub Secrets:
- Navigate to the repository's **Settings** > **Secrets** > **Actions**.
- Under **Repository secrets** create `HEX_USERNAME` and `HEX_PASSWORD` with your hex username and password respectively.
2. Granting Actions Permissions
- Navigate to the repository's **Settings** > **Actions** > **General**.
- Under **Workflow permissions**, select **Read and write permissions**, then click **Save**.
Set the `HEX_DEPLOY_KEY` token in the repository secrets (**Settings** > **Secrets** > **Actions**).
## 💝 Thanks to