-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adding beta workflow to release beta version
- Loading branch information
1 parent
2952169
commit 16c2584
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Beta Release | ||
on: | ||
push: | ||
branches: ["develop"] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build the Image | ||
run: docker build --tag ghcr.io/${{ github.repository }}:${{ github.sha }} . | ||
- name: Running beta release | ||
run: | | ||
docker run \ | ||
-e GITHUB_TOKEN=${GITHUB_TOKEN} \ | ||
-e GIT_DIRECTORY="/app" \ | ||
-e GIT_EMAIL=${GIT_EMAIL} \ | ||
-e GIT_USERNAME="${GIT_USERNAME}" \ | ||
-e GPG_PRIVATE_KEY="${GPG_PRIVATE_KEY}" \ | ||
-e GPG_PRIVATE_KEY_ID="${GPG_PRIVATE_KEY_ID}" \ | ||
-e RELEASE_IT_PLUGINS="@release-it/conventional-changelog@latest" \ | ||
-e SSH_PRIVATE_KEY_FILE="${SSH_PRIVATE_KEY_FILE}" \ | ||
-v $PWD:/app \ | ||
ghcr.io/${{ github.repository }}:${{ github.sha }} \ | ||
release-it --ci --preRelease=beta | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_EMAIL: ${{ vars.GIT_EMAIL }} | ||
GIT_USERNAME: ${{ vars.GIT_USERNAME }} | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_PRIVATE_KEY_ID: ${{ secrets.GPG_PRIVATE_KEY_ID }} | ||
SSH_PRIVATE_KEY_FILE: ${{ secrets.SSH_PRIVATE_KEY_FILE }} |