Skip to content

Commit

Permalink
Add new ci workflows with releases
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoila committed Nov 29, 2024
1 parent 58c51d0 commit d2cbf1d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
# Runs builds on GitHub pull requests to test that they should be working fine.
# Runs builds and e2e tests
##
name: Test builds
on:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Production deployment

on:
push:
branches: [main]
release:
types: [released]
workflow_dispatch:

env:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release draft

on:
# Update release draft on pushes to the main branch
push:
branches: [main]
# Run on PRs only for autolabeler
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update-draft:
name: Update draft
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
commitish: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d2cbf1d

Please sign in to comment.