Fix e2e earthfile #99
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 github docker crates | |
permissions: write-all | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
crates: | |
name: Publish crates to crates.io | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- uses: pnpm/[email protected] | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: false | |
- name: publish crates | |
uses: katyo/publish-crates@v1 | |
with: | |
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
# I'd like to skip this one, as the publish-tauri action already creates a release | |
create-release: | |
name: Create Release on GitHub | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/[email protected] | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: false | |
- uses: taiki-e/create-gh-release-action@v1 | |
with: | |
# (optional) | |
changelog: CHANGELOG.md | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# publish-tauri: | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# platform: [macos-latest, ubuntu-latest, windows-latest] | |
# runs-on: ${{ matrix.platform }} | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: setup node | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: 12 | |
# - name: install Rust stable | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# - name: install webkit2gtk and | |
# sudo apt-get install -y webkit2gtk-4.0 libappindicator3 (ubuntu only) | |
# if: matrix.platform == 'ubuntu-latest' | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev | |
# - name: Get Changelog Entry | |
# id: changelog_reader | |
# uses: mindsers/changelog-reader-action@v2 | |
# with: | |
# version: ${{ steps.tag_name.outputs.current_version }} | |
# path: CHANGELOG.md | |
# - uses: pnpm/[email protected] | |
# name: Install pnpm | |
# id: pnpm-install | |
# with: | |
# version: 8 | |
# run_install: false | |
# - uses: tauri-apps/tauri-action@v0 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
# # TODO: https://github.com/atomicdata-dev/atomic-server/issues/237 | |
# # ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }} | |
# # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | |
# # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
# # APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_IDENTITY_ID }} | |
# # APPLE_ID: ${{ secrets.APPLE_ID }} | |
# # APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | |
# with: | |
# tagName: ${{ steps.changelog_reader.outputs.version }} | |
# releaseName: ${{ steps.changelog_reader.outputs.version }} | |
# releaseBody: ${{ steps.changelog_reader.outputs.changes }} | |
# releaseDraft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }} | |
# prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }} | |
upload-assets: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
# Currently not supported | |
# - windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: pnpm/[email protected] | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: false | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions/checkout@v2 | |
- uses: taiki-e/upload-rust-binary-action@v1 | |
with: | |
# (required) | |
bin: atomic-server | |
# (optional) On which platform to distribute the `.tar.gz` file. | |
# [default value: unix] | |
# [possible values: all, unix, windows, none] | |
tar: all | |
# (optional) On which platform to distribute the `.zip` file. | |
# [default value: windows] | |
# [possible values: all, unix, windows, none] | |
zip: windows | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
push_to_registry: | |
name: Push Docker image to Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
with: | |
username: joepmeneer | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | |
with: | |
images: joepmeneer/atomic-server | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }},joepmeneer/atomic-server:latest | |
labels: ${{ steps.meta.outputs.labels }} |