Skip to content

Commit

Permalink
ci: set up automatic release and committing of changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrobin committed Dec 9, 2024
1 parent 126e731 commit 6ff5d35
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: nightly-release
on:
push:
branches:
- "feat/nightly-builds"
- 'feat/nightly-builds'

jobs:
check_date:
Expand Down Expand Up @@ -110,5 +110,16 @@ jobs:
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Pre Release
run: pnpm run pre-nightly-release
- name: Get the current date time
id: datetime
run: echo "release_date=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Leonidas
author_email: leonidas@spartan.ng
message: 'nightly release ${{steps.datetime.outputs.release_date}} ⚡'
- name: Release
run: pnpm run pre-nightly-release && pnpm run release
run: pnpm run release

0 comments on commit 6ff5d35

Please sign in to comment.