ci(build): fixed missing include in conversions.h #18
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
setup: | |
if: github.event.base_ref == 'refs/heads/master' | |
name: Setup | |
runs-on: ubuntu-latest | |
outputs: | |
tag: ${{ steps.get_tag.outputs.tag }} | |
steps: | |
- name: Get tag | |
id: get_tag | |
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//} | |
container: | |
name: Build and upload container | |
needs: | |
- setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: mr-smithers-excellent/docker-build-push@v5 | |
name: Build & push the Docker image | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.GHCR_USER }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
dockerfile: Dockerfile | |
image: video2x | |
tags: latest, ${{ needs.setup.outputs.tag }} | |
create-release: | |
name: Create release | |
needs: | |
- setup | |
- container | |
runs-on: ubuntu-latest | |
outputs: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
steps: | |
- name: Create release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ needs.setup.outputs.tag }} | |
release_name: Video2X ${{ needs.setup.outputs.tag }} | |
draft: true | |
prerelease: false |