Bump @discordjs/opus from 0.5.3 to 0.9.0 #135
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
#TODO: Add abiliit to create release from new tag | |
# This is a basic workflow to help you get started with Actions | |
name: build-and-release | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
docker-build-publish: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
env: | |
PUSH_PACKAGES: ${{github.event_name == 'push' && github.ref == 'refs/heads/main'}} | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{github.repository}} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Set up QEMU for emulation to build against other platforms | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
# Set up Docker Buildx | |
- name: Set Up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
# Login to GHCR | |
- name: Login to GitHub Container Registry | |
if: ${{env.PUSH_PACKAGES == 'true'}} | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{env.REGISTRY}} | |
username: ${{github.actor}} | |
password: ${{secrets.GHCR_PUBLISH_FROM_ACTIONS_TOKEN}} | |
# Generate the next semanict version tag for git and docker | |
- name: Generate Tags | |
if: ${{env.PUSH_PACKAGES == 'true'}} | |
id: gen-tags | |
uses: ./.github/actions/generate-tags | |
with: | |
image: ${{env.REGISTRY}}/${{env.IMAGE_NAME}} | |
# Tag the branch and Push the Tag to Github | |
- name: Git Tag & Push | |
if: ${{env.PUSH_PACKAGES == 'true'}} | |
id: git-tag-push | |
uses: ./.github/actions/git-tag-push | |
with: | |
tag: ${{steps.gen-tags.outputs.git-tag}} | |
github-auth: ${{secrets.GHCR_PUBLISH_FROM_ACTIONS_TOKEN}} | |
#Create a GitHub Release from tag | |
- name: Create Release | |
if: ${{env.PUSH_PACKAGES == 'true'}} | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
tag_name: ${{steps.gen-tags.outputs.git-tag}} | |
release_name: Release ${{steps.gen-tags.outputs.git-tag}} | |
draft: false | |
prerelease: false | |
# Run Docker build | |
- name: Run Docker Build & Publish | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: ${{env.PUSH_PACKAGES}} | |
context: . | |
tags: ${{steps.gen-tags.outputs.docker-tag}} |