Skip to content

Commit

Permalink
Create release
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanow committed Sep 11, 2024
1 parent e0178d5 commit 07a4ba0
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 50 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,44 +45,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: jar
path: build/libs/*.jar
retention-days: 1

- name: Stop containers
if: always()
continue-on-error: true
run: docker compose down -v

publish:
name: Publish
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
permissions:
packages: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: "17"
cache: "gradle"

- uses: actions/download-artifact@v4
with:
name: jar
path: build/libs/

- name: Publish artefacts
run: ./gradlew publish
env:
GITHUB_USER: ${{ secrets.GITHUB_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
uses: softprops/action-gh-release@v2
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Build project
on:
push:
branches:
- master
tags:
- v*
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: "17"
cache: "gradle"

- name: Build
run: ./gradlew clean assemble

- name: Publish artefacts
run: ./gradlew publish
env:
GITHUB_USER: ${{ secrets.GITHUB_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
uses: softprops/action-gh-release@v2
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author:

show_downloads: false
remote_theme: jekyll/minima
header_pages: [ ]
header_pages: ['']
exclude:
- report/*

Expand Down
11 changes: 0 additions & 11 deletions assets/main.scss

This file was deleted.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=1.0.4
version=1.0.5
group=ru.romanow.playwright
org.gradle.daemon=true
Empty file removed pages/header.md
Empty file.

0 comments on commit 07a4ba0

Please sign in to comment.