Skip to content

Commit 9452725

Browse files
committed
feat(actions): auto release
1 parent 5b61506 commit 9452725

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

.github/workflows/github-bump.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Bump
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
bump:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Bump version and push tag
15+
id: tag_version
16+
uses: mathieudutour/[email protected]
17+
with:
18+
github_token: ${{ secrets.PAT }}
19+
tag_prefix: ''
20+
21+
- name: Create a GitHub release
22+
uses: ncipollo/release-action@v1
23+
with:
24+
token: ${{ secrets.PAT }}
25+
tag: ${{ steps.tag_version.outputs.new_tag }}
26+
name: ${{ steps.tag_version.outputs.new_tag }}
27+
body: ${{ steps.tag_version.outputs.changelog }}
28+
allowUpdates: true
29+
generateReleaseNotes: true

.github/workflows/pull-request.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Pull Request"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: read
16+
steps:
17+
- uses: amannn/action-semantic-pull-request@v5
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,20 @@ docker run -it --rm \
102102

103103
> You can now launch nvim from inside the container, and work on your project directly from the mounted volume.
104104
105+
💡 **Note**: The Codespaces Docker image is also available on GitHub Container Registry.
106+
107+
If your company restricts access to docker.io, you can use the GitHub-hosted image instead by replacing `ealen/codespaces` with `ghcr.io/ealenn/codespaces`.
108+
109+
```sh
110+
alias codespaces='docker run -it --rm \
111+
-v "$HOME/.ssh:/home/ubuntu/.ssh:ro" \
112+
-v "$HOME/.gnupg:/home/ubuntu/.gnupg:ro" \
113+
-v "/var/run/docker.sock:/var/run/docker.sock" \
114+
-v "$PWD:/workspace" \
115+
-w /workspace \
116+
ghcr.io/ealenn/codespaces'
117+
```
118+
105119
# 💻 GitHub Codespaces Support
106120

107121
This image is fully compatible with [GitHub Codespaces](https://docs.github.com/en/codespaces)!

0 commit comments

Comments
 (0)