-
Notifications
You must be signed in to change notification settings - Fork 68
Fix Release Drafter #148
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
Merged
Merged
Fix Release Drafter #148
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fb5ddbc
add: publish app image
a5chin 104cb7d
release-drafter.yml release.yml
a5chin c87388f
fix: release action
a5chin 26d2c5d
add: draft
a5chin c5366f3
Update .github/workflows/publish-app.yml
a5chin dd77f13
fix: chore
a5chin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,22 @@ | ||
| name: Draft Release | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| update: | ||
| if: github.event.pull_request.merged == true && !contains(github.head_ref, 'release/') | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Update Draft Release | ||
| uses: release-drafter/release-drafter@v6 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or 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,72 @@ | ||
| name: Publish Devcontainer to GHCR | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| tags: | ||
| - "v*" | ||
| paths: | ||
| - ".github/workflows/publish-app.yml" | ||
| - ".python-version" | ||
| - "Dockerfile" | ||
|
|
||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| IMAGE_NAME: ${{ github.repository }}/app | ||
| REGISTRY: ghcr.io | ||
|
|
||
| jobs: | ||
| publish-devcontainer: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Log in to Container Registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ${{ env.REGISTRY }} | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Extract metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
| tags: | | ||
| type=ref,event=branch | ||
| type=semver,pattern={{version}} | ||
| type=sha,prefix={{branch}}- | ||
| type=raw,value=latest,enable={{is_default_branch}} | ||
| labels: | | ||
| maintainer=a5chin <a5chin.origin+contact@gmain.com> | ||
| org.opencontainers.image.url=https://github.com/a5chin/python-uv | ||
| org.opencontainers.image.source=https://github.com/a5chin/python-uv | ||
| org.opencontainers.image.vendor=a5chin <a5chin.origin+contact@gmain.com> | ||
| org.opencontainers.image.title=python-uv | ||
| org.opencontainers.image.description=Dev Container for Python development with uv-based dependency management and environment configuration. | ||
| org.opencontainers.image.documentation=https://a5chin.github.io/python-uv/ | ||
| org.opencontainers.image.authors=a5chin <a5chin.origin+contact@gmain.com> | ||
| org.opencontainers.image.licenses=MIT | ||
|
|
||
| - name: Build and push devcontainer image | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| file: Dockerfile | ||
| push: true | ||
| provenance: false | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.