Commit graph

58 commits

Author SHA1 Message Date
earl-warren
3abc683f45 Merge pull request 'Fix release notes not being escaped properly' (#19) from paulvt/forgejo-release:fix-escaping-release-notes into main
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/19
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-08-18 03:31:03 +00:00
Paul van Tilburg
9c0ac967a9
Add test ensuring no breakage because of shell expansion 2024-08-17 11:24:08 +02:00
Paul van Tilburg
6ab7d41741
Fix release notes being escaped properly
The release notes can contain special characters that will be expanded
by bash if not escaped properly, such as the dollar sign (`$`) or the
backtick (`\``).
This PR replaces setting the `RELEASENOTES` environment variable using
double quotes by a heredoc that does not perform any shell-related
expansion.
2024-08-11 12:14:42 +02:00
Paul van Tilburg
39501b1a89 Add missing title input to the README (#21)
This PR adds the `title` input to the README, added in #18.

It also fixes small indentation errors that made the examples not look correctly.

Closes #20.

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/21
Co-authored-by: Paul van Tilburg <paul@luon.net>
Co-committed-by: Paul van Tilburg <paul@luon.net>
2024-08-10 05:58:49 +00:00
earl-warren
4cc83a59c5 Merge pull request 'Add ability to set the release title' (#18) from paulvt/forgejo-release:set-release-title into main
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/18
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-08-09 15:56:00 +00:00
Paul van Tilburg
b0876c539d
Add ability to set the release title
This PR allows you the set/override the release title, which was set to
the tag and still defaults to the tag.
2024-08-09 16:39:58 +02:00
benniekiss
a5aa633273 Support downloading the latest release of a repo (#16)
This PR adds the functionality to download the latest release from a repo. The API provides an endpoint to do so, so an option has been added to the action.

This closes #12

Co-authored-by: benniekiss <bgmt@mail.bbalm.me>
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/16
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: benniekiss <benniekiss@noreply.code.forgejo.org>
Co-committed-by: benniekiss <benniekiss@noreply.code.forgejo.org>
2024-07-08 18:49:13 +00:00
benniekiss
de47e391d3 Allow downloading releases from private repos (#15)
Closes #14

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/15
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: benniekiss <benniekiss@noreply.code.forgejo.org>
Co-committed-by: benniekiss <benniekiss@noreply.code.forgejo.org>
2024-07-06 20:04:23 +00:00
Léana 江
eb0fcc44a1 fetch tea for the matching architecture
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/11
Co-authored-by: Léana 江 <leana.jiang@icloud.com>
Co-committed-by: Léana 江 <leana.jiang@icloud.com>
2024-05-12 11:02:43 +00:00
earl-warren
93cfaf8d53 Merge pull request 'override an existing release by the same tag' (#7) from earl-warren/forgejo-release:wip-override into main
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/7
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2024-02-12 14:06:05 +00:00
Earl Warren
809ad6c4e5
override an existing release by the same tag 2024-02-12 14:32:32 +01:00
earl-warren
888150209e Merge pull request 'Improve documentation with example for downloading a release' (#5) from Crown0815/forgejo-release:main into main
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/5
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-02-02 14:14:23 +00:00
Crown0815
38c8f4cd4d Add download example 2024-02-01 12:50:40 +00:00
Earl Warren
ce36eb9e28
update README 2024-01-03 22:39:52 +01:00
Earl Warren
0acb5f263e
instructions on how to update the README from action.yml 2024-01-03 22:38:48 +01:00
earl-warren
54df7acad2 Merge pull request 'Add ability to manually specify pre-releases' (#3) from Neshura/forgejo-release:main into main
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/3
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-01-03 21:38:31 +00:00
Earl Warren
241b5920f4
use branch_tip instead of forgejo-test-helper.sh output 2024-01-03 22:32:27 +01:00
Earl Warren
fdf3d323b9
also run CI on pull requests 2024-01-03 21:45:50 +01:00
Neshura
81f7998d0e Add PRELEASE handling to forgejo-release.sh 2024-01-03 18:25:06 +00:00
Neshura
a29fc96f18 Add prerelease input to action.yml 2024-01-03 18:23:39 +00:00
Earl Warren
4d98c454fb
s/ubuntu-latest/docker/ 2023-11-05 22:30:57 +01:00
earl-warren
4ac9bbc591 Merge pull request 'fix race condition when using v1.20 in tests' (#2) from wip-build-publish into main
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/2
2023-09-02 09:02:44 +00:00
Earl Warren
837e49d432
show forgejo logs on failure() 2023-09-02 10:55:33 +02:00
Earl Warren
2d51a3fa48
workaround race condition in v1.20
Refs: https://codeberg.org/forgejo/forgejo/issues/1370
2023-09-02 10:55:33 +02:00
Earl Warren
069735deb1
upgrade tests to 1.20 2023-09-02 10:55:32 +02:00
Earl Warren
ca1a3fb023
allow tea login multiple times 2023-08-25 11:41:43 +02:00
earl-warren
1fda0bb063 Merge pull request 'add support for GPG signing of assets' (#1) from wip-gpg into main
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/1
2023-05-26 13:15:55 +00:00
Earl Warren
c6d7843bab
action: support for GPG signing 2023-05-26 15:05:07 +02:00
Earl Warren
f886973249
GPG signing logic 2023-05-26 14:49:39 +02:00
Earl Warren
358b55efd4
wait for a release to no longer be draft before downloading 2023-05-24 01:32:23 +02:00
Earl Warren
56c1c975a3
mark the release as draft until it is ready 2023-05-24 01:09:00 +02:00
Earl Warren
fb9e03dc6f
cosmetic change to integration 2023-05-24 01:08:27 +02:00
Earl Warren
c77cf483dd
support signing release artifacts 2023-05-23 13:04:53 +02:00
Earl Warren
0037083d2d
cosmetic changes 2023-05-23 13:04:49 +02:00
Earl Warren
bb345b780c
LICENSE is MIT 2023-04-01 11:12:56 +02:00
Earl Warren
4f06c1b250
github.token has restricted permissions and won't be useful 2023-03-31 00:54:48 +02:00
Earl Warren
12233a8d78
trim refs/tags/ for short tag names 2023-03-31 00:36:06 +02:00
Earl Warren
b818607d61
no doer 2023-03-31 00:19:35 +02:00
Earl Warren
a9b7d752f4
exclude tags 2023-03-30 23:50:46 +02:00
Earl Warren
28d6f1caa5
do not upload emacs backupfiles 2023-03-30 17:45:40 +02:00
Earl Warren
620ec2551a
split integration tests 2023-03-30 17:27:35 +02:00
Earl Warren
25027fcba8
set token from FORGEJO_TOKEN in the test environment 2023-03-30 17:16:24 +02:00
Earl Warren
cb070c9a96
fallback to env.GITHUB_SERVER_URL if FORGEJO is not set 2023-03-30 17:16:24 +02:00
Earl Warren
ba62e00392
quietly apt-get update 2023-03-30 15:22:00 +02:00
Earl Warren
6787cd1bd1
add README 2023-03-30 14:50:09 +02:00
Earl Warren
3a07a6062f
non nested upload/download tests 2023-03-30 10:43:52 +02:00
Earl Warren
df1717d07c
s/upload-download/nested-upload-download/ 2023-03-30 09:14:15 +02:00
Earl Warren
ca02749d65
adapt shell tests 2023-03-30 09:14:15 +02:00
Earl Warren
d12e05c347
use a different IP prefix in nested forgejo instances 2023-03-30 01:32:08 +02:00
Earl Warren
c00160628d
add release notes 2023-03-30 00:05:14 +02:00