Skip to content

Cleanup docs

Cleanup docs #526

Workflow file for this run

name: Pre-release on push to main
on:
push:
branches:
- main
jobs:
release:
name: "Pre-release"
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
docker-images: false
- uses: actions/checkout@v3
- name: Calculate release version
run: |
echo "release_version=1.0.$(date +'%g%m%d%H%M')-SNAPSHOT" >> $GITHUB_ENV
- name: Set version
run: |
sed -i "s/1.0.0-SNAPSHOT/${{ env.release_version }}/g" build.gradle.kts
- run: |
git tag v${{ env.release_version }}
git push --tags
- name: Setup cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v3
- name: Running gradle build
uses: eskatos/gradle-command-action@v3
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
with:
arguments: build publish --no-daemon
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images (issuer)
uses: docker/build-push-action@v6
with:
push: true
file: waltid-services/waltid-issuer-api/Dockerfile
tags: waltid/issuer-api:latest, waltid/issuer-api:${{ env.release_version }}
- name: Build and push Docker images (verifier)
uses: docker/build-push-action@v6
with:
push: true
file: waltid-services/waltid-verifier-api/Dockerfile
tags: waltid/verifier-api:latest, waltid/verifier-api:${{ env.release_version }}
- name: Build and push Docker images (wallet-api)
uses: docker/build-push-action@v6
with:
push: true
file: waltid-services/waltid-wallet-api/Dockerfile
tags: waltid/wallet-api:latest, waltid/wallet-api:${{ env.release_version }}
- name: Build and push Docker images (waltid-demo-wallet)
uses: docker/build-push-action@v6
with:
push: true
file: waltid-applications/waltid-web-wallet/apps/waltid-demo-wallet/Dockerfile
tags: waltid/waltid-demo-wallet:latest, waltid/waltid-demo-wallet:${{ env.release_version }}
- name: Build and push Docker images (waltid-dev-wallet)
uses: docker/build-push-action@v6
with:
push: true
file: waltid-applications/waltid-web-wallet/apps/waltid-dev-wallet/Dockerfile
tags: waltid/waltid-dev-wallet:latest, waltid/waltid-dev-wallet:${{ env.release_version }}
- name: Build and push Docker images (wallet-portal)
uses: docker/build-push-action@v6
with:
push: true
file: waltid-applications/waltid-web-portal/Dockerfile
tags: waltid/portal:latest, waltid/portal:${{ env.release_version }}
- name: Changelog
uses: ardalanamini/auto-changelog@v4
id: changelog
with:
github-token: ${{ github.token }}
default-commit-type: Other Changes
release-name: v${{ env.release_version }}
mention-authors: true
mention-new-contributors: true
include-compare-link: true
use-github-autolink: true
semver: true
- name: Create Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.release_version }}
body: |
${{ steps.changelog.outputs.changelog }}
prerelease: ${{ steps.changelog.outputs.prerelease }}