Skip to content

Commit

Permalink
Update action Create Release (#74)
Browse files Browse the repository at this point in the history
- Updated to use actions/checkout@v3
- Added Run to run command to create release
  • Loading branch information
LauroSilveira authored Dec 15, 2023
1 parent 074bd54 commit 6cc0ee0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,20 @@ name: Create Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

- 'v*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v3
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false
run: |
gh release create "$GITHUB_REF_NAME" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${GITHUB_REF_NAME#v}" \
--generate-notes
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ public OpenAPI customOpenAPI() {
.components(new Components()
.addSecuritySchemes("bearer-key",
new SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("bearer").bearerFormat("JWT")))
.info(new Info().title("alura-flix-api")
.description("An API Rest about movies and series that implements Get, Post, Put and Delet methods."
+ " Also implements JWT security with Spring Framework")
.info(new Info()
.title("alura-flix-api")
.description("An API Rest about movies and series that implements Get, Post, Put and Delete methods."
+ " Also implements JWT security with Spring Framework and use MongoDB Atlas as database" + "\n"
+ "There is a user of test you can use, username: guest@aluraflix.com, password: 123456" + "\n" + "Please, note that some endpoints are security and this use do not have some permissions."
+ "any problem let me know by my contact.")
.contact(new Contact()
.name("Lauro Correia")
.email("lauro.silveira@ymail.com"))
.license(new License()
.name("Apache 2.0")
.url("http://voll.med/api/licenca")
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@ExtendWith(SpringExtension.class)
//@WebMvcTest: Includes both the @AutoConfigureWebMvc and the @AutoConfigureMockMvc, among other functionality.
@WebMvcTest
//this anotation can be replaced at each test method scope
//this annotation can be replaced at each test method scope
@WithMockUser(value = "admin", username = "admin", password = "admin", roles = "ADMIN")
class VideoControllerTest {

Expand Down

0 comments on commit 6cc0ee0

Please sign in to comment.