Skip to content

Release

Release #971

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "*/Dockerfile"
- ".github/**"
schedule:
- cron: "25 5 * * *"
jobs:
stable:
name: Stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: ./.github/actions/release
name: Release stable
with:
password: ${{ secrets.DOCKERHUB_PAT }}
target: stable
allowOverride: true
nightly:
name: Nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: ./.github/actions/release
name: Release nightly
with:
password: ${{ secrets.DOCKERHUB_PAT }}
target: master
tag: nightly
allowOverride: true
latest:
name: Latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Retrieve lastest version
run: |
export TARGET=$(curl -s https://api.github.com/repos/neovim/neovim/releases/latest | grep tag_name | cut -d \" -f 4)
echo "TARGET=$TARGET" >> $GITHUB_ENV
echo "TAG=$(echo $TARGET | cut -d 'v' -f 2)" >> $GITHUB_ENV
- uses: ./.github/actions/release
name: Release latest
with:
password: ${{ secrets.DOCKERHUB_PAT }}
target: ${{ env.TARGET }}
tag: ${{ env.TAG }}