Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: gh action for nightly releases #114

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build-for-release.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
name: Build For Release

# Build `astria-go` binaries for multiple architectures whenever
# a release is created, using the tag name as the cli's version

on:
release:
types: [created]
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Nightly Release

# Creates a nightly release which triggers build-for-release

on:
schedule:
# every day at 6AM UTC. late night for America, early morning for Europe
- cron: '0 6 * * *'
workflow_dispatch:

permissions:
contents: write
packages: write

jobs:
create-nightly-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set current date in environment variable
run: echo "RELEASE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Create Nightly Release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: "Nightly Release ${{ env.RELEASE_DATE }}"
body: "${{ env.RELEASE_DATE }} nightly release of `astria-go`"
tag_name: nightly-${{ env.RELEASE_DATE }}
prerelease: true
draft: false
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}
Loading