This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
667 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,21 +1,13 @@ | ||
MIT License | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
Version 2, December 2004 | ||
|
||
Copyright (c) 2021 deirn | ||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
0. You just DO WHAT THE FUCK YOU WANT TO. |
This file contains 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 |
---|---|---|
@@ -1,29 +1,41 @@ | ||
# autojitpack | ||
# autojitpack@v1 | ||
|
||
Automatically send a request to JitPack after every release to save some headache | ||
I hate it when I update a dependency version and it failed to sync because JitPack still building the package. | ||
|
||
## Example | ||
|
||
You'd probably want to use this action on a [`release`][1] event. | ||
|
||
```yaml | ||
name: release | ||
on: | ||
push: | ||
tags: "*" | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- uses: badasintended/autojitpack@v1 | ||
with: | ||
java-version: 1.8 | ||
- run: chmod +x gradlew | ||
- run: ./gradlew build | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "./build/libs/**.jar" | ||
- uses: alexellis/upload-assets@0.2.2 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
asset_paths: '["./build/libs/*[0-9.].jar"]' | ||
- uses: badasintended/autojitpack@v0 | ||
version: ${{ github.event.release.tag_name }} | ||
``` | ||
## Inputs | ||
### `version` | ||
|
||
**Required: yes** | ||
Current tag (or commit hash if you are that type of person.) | ||
Unlike [`v0`][2] that use git ref and shitty regex to resolve the package, | ||
now it requires you to manually input the version yourself. | ||
|
||
### `timeout` | ||
|
||
**Required: yesn't** | ||
**Default: `-1`** | ||
Amount of time in milisecond the request will wait to abort itself. | ||
If set to `-1`, it'll wait for JitPack to finish building the package. | ||
Or it'll timeout regardless, idk. Either way your user wont need to waste another click to resync your package. | ||
|
||
[1]: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release | ||
[2]: https://github.com/badasintended/autojitpack/tree/v0 |
This file contains 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 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
Oops, something went wrong.