forked from bungle/lua-resty-session
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: release v4.1.6 #2
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
+97
−3
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ef3f423
ci: add release workflow to publish to luarocks on tag
AlinsRan 00abc9f
ci: install dkjson before luarocks upload
AlinsRan c104ade
ci: align release workflow with api7 lua-resty-healthcheck
AlinsRan 0f516c7
feat: release v4.1.6
AlinsRan 563fe68
ci: pin luarocks make to the root rockspec in tests
AlinsRan 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
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,58 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "master" | ||
| paths: | ||
| - 'rockspecs/**' | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| release: | ||
| name: Release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Install Lua | ||
| uses: leafo/gh-actions-lua@v10 | ||
|
|
||
| - name: Install Luarocks | ||
| uses: leafo/gh-actions-luarocks@v4 | ||
|
|
||
| - name: Extract release name | ||
| id: release_env | ||
| shell: bash | ||
| env: | ||
| COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
| run: | | ||
| title="$COMMIT_MESSAGE" | ||
| re="^feat: release v*(\S+)" | ||
| if [[ $title =~ $re ]]; then | ||
| echo "version=v${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT" | ||
| echo "version_without_v=${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "commit format is not correct" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Create Release | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| VERSION: ${{ steps.release_env.outputs.version }} | ||
| run: | | ||
| gh release create "$VERSION" --title "$VERSION" --generate-notes | ||
|
|
||
| - name: Upload to luarocks | ||
| env: | ||
| LUAROCKS_TOKEN: ${{ secrets.LUAROCKS_TOKEN }} | ||
| VERSION_WITHOUT_V: ${{ steps.release_env.outputs.version_without_v }} | ||
| run: | | ||
| luarocks install dkjson | ||
| luarocks upload "rockspecs/lua-resty-session-api7-${VERSION_WITHOUT_V}-0.rockspec" --api-key="${LUAROCKS_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
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,36 @@ | ||
| package = "lua-resty-session-api7" | ||
| version = "4.1.6-0" | ||
| source = { | ||
| url = "git+https://github.com/api7/lua-resty-session.git", | ||
| tag = "v4.1.6", | ||
| } | ||
| description = { | ||
| summary = "Session Library for OpenResty - Flexible and Secure", | ||
| detailed = "lua-resty-session is a secure, and flexible session library for OpenResty.", | ||
| homepage = "https://github.com/api7/lua-resty-session", | ||
| license = "BSD", | ||
| } | ||
| dependencies = { | ||
| "lua >= 5.1", | ||
| "lua-ffi-zlib >= 0.5", | ||
| "lua-resty-openssl >= 1.5.0", | ||
| } | ||
| build = { | ||
| type = "builtin", | ||
| modules = { | ||
| ["resty.session"] = "lib/resty/session.lua", | ||
| ["resty.session.dshm"] = "lib/resty/session/dshm.lua", | ||
| ["resty.session.file"] = "lib/resty/session/file.lua", | ||
| ["resty.session.file.thread"] = "lib/resty/session/file/thread.lua", | ||
| ["resty.session.file.utils"] = "lib/resty/session/file/utils.lua", | ||
| ["resty.session.memcached"] = "lib/resty/session/memcached.lua", | ||
| ["resty.session.mysql"] = "lib/resty/session/mysql.lua", | ||
| ["resty.session.postgres"] = "lib/resty/session/postgres.lua", | ||
| ["resty.session.redis"] = "lib/resty/session/redis.lua", | ||
| ["resty.session.redis.cluster"] = "lib/resty/session/redis/cluster.lua", | ||
| ["resty.session.redis.sentinel"] = "lib/resty/session/redis/sentinel.lua", | ||
| ["resty.session.redis.common"] = "lib/resty/session/redis/common.lua", | ||
| ["resty.session.shm"] = "lib/resty/session/shm.lua", | ||
| ["resty.session.utils"] = "lib/resty/session/utils.lua", | ||
| }, | ||
| } |
Oops, something went wrong.
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.