-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
280 additions
and
37 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Publish a flake to flakestry" | ||
on: | ||
push: | ||
tags: | ||
- "v?[0-9]+.[0-9]+.[0-9]+" | ||
- "v?[0-9]+.[0-9]+" | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "The existing tag to publish" | ||
type: "string" | ||
required: true | ||
jobs: | ||
publish-flake: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: "write" | ||
contents: "read" | ||
steps: | ||
- uses: tsirysndr/flakestry-publish@main | ||
with: | ||
version: "${{ inputs.tag || github.ref_name }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: release | ||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: release | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: | ||
- x86_64-unknown-linux-gnu | ||
- x86_64-apple-darwin | ||
- aarch64-apple-darwin | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Fluent CI | ||
uses: fluentci-io/setup-fluentci@v4 | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Build | ||
run: fluentci run . compile | ||
env: | ||
TAG: ${{ env.RELEASE_VERSION }} | ||
TARGET: ${{ matrix.target }} | ||
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }} | ||
- name: Upload release assets | ||
run: | | ||
for ext in tar.gz tar.gz.sha256; do | ||
export FILE=/app/pocketenv_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.$ext | ||
fluentci run github_pipeline release_upload | ||
done | ||
env: | ||
TAG: ${{ env.RELEASE_VERSION }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
description = "Manage your development environment with ease ✨"; | ||
|
||
inputs = { | ||
utils.url = "github:numtide/flake-utils"; | ||
deno2nix = { | ||
url = "github:tsirysndr/deno2nix"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
}; | ||
|
||
outputs = { self, nixpkgs, utils, deno2nix }: | ||
utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
overlays = [ deno2nix.overlays.default ]; | ||
}; | ||
in | ||
rec { | ||
|
||
apps.default = utils.lib.mkApp { | ||
drv = packages.default; | ||
}; | ||
|
||
packages.default = pkgs.deno2nix.mkExecutable { | ||
pname = "pocketenv"; | ||
version = "0.1.0"; | ||
|
||
src = ./.; | ||
lockfile = "./deno.lock"; | ||
config = "./deno.json"; | ||
entrypoint = "./main.ts"; | ||
allow = { | ||
all = true; | ||
}; | ||
}; | ||
|
||
devShell = pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
deno | ||
]; | ||
}; | ||
}); | ||
} |