Commit graph

33 commits

Author SHA1 Message Date
Pawel Bartusiak
1c0eef186f
chore(action.yml): rename input;
Rename 'githubToken' input to 'gitHubToken' in action.yml to reflect the key used for intake in the script;
2024-11-25 19:00:09 -08:00
Maximo Guk
d58f116d72
Add github deployments to wrangler action for pages parity 2024-11-19 11:38:18 -06:00
Maximo Guk
122ee5cf5b
Moves wrangler output to tmpdir rather than /opt/ since /opt/ is owned by root.
- Github self hosted runners may not have permissions to write to /opt/

- Also fallsback to trying to extract the deployment-url and deployment-alias-url from stdout when WRANGLER_OUTPUT_DIR is not specified
2024-11-01 13:29:38 -05:00
Ambroos Vaes
a1467a0c8f
Add deployment-alias-url for pages deployments with Wrangler 3.78.0+ 2024-09-19 18:54:02 +02:00
Grant Birkinbine
0fff39f4b7
Update action.yml
Co-authored-by: Cina Saffary <itscina@gmail.com>
2023-12-12 22:19:53 -07:00
GrantBirki
97c920b38e
parse and set the deployment-url 2023-12-07 22:48:10 -07:00
GrantBirki
11fa60953d
set another output for stderr as it will almost always contain 'some' data 2023-12-07 22:30:51 -07:00
GrantBirki
74a612d924
swap from file to output variable 2023-12-07 22:26:06 -07:00
GrantBirki
0558fc8c04
swap to commandOutput 2023-12-07 22:13:33 -07:00
GrantBirki
8d6fade5ad
save primary wrangler command output to a file (optionally) 2023-12-01 11:04:51 -07:00
Cina Saffary
a4509d507c Don't set packageManager default via action.yml
We need to distinguish between when the value is and isn't set in order to perform inference based on lockfile and only fallback to the default of npm if inference fails.
2023-10-10 18:00:32 -05:00
Jacob Andersen
080373bdb6
Add bun as a package manager option in action.yml 2023-10-10 13:17:05 -07:00
Cina Saffary
528687aaf4 Refactor to use npm as a fallback if no packageManager specified...
and no lockfile is present. Fixes #180
2023-10-09 17:20:09 -05:00
Han Yeong-woo
d1073d57ba
Run format 2023-09-19 01:30:35 +09:00
Han Yeong-woo
a009342d77
Add packageManager setting 2023-09-19 01:30:34 +09:00
DemosJarco
f5d1ca36ae
Added comment with link 2023-09-04 11:54:36 -07:00
DemosJarco
4d6d6abfb4
Update action.yml 2023-09-04 11:50:59 -07:00
Jacob M-G Evans
3f40637a1c
Quiet feature
Some of the stderr, stdout, info & groupings can be a little noisy for some users and use cases.
This feature allows for a option to be passed 'quiet: true' this would significantly reduce the noise.

There will still be output that lets the user know Wrangler Installed and Wrangler Action completed successfully.
Any failure status will still be output to the user as well, to prevent silent failures.

resolves #142
2023-08-16 09:37:29 -05:00
Jacob M-G Evans
e420d29d0a
Updating build script to convert to .mjs for ESM support 2023-08-09 11:19:52 -05:00
lrapoport-cf
45c57ae013 Update publish to deploy 2023-08-07 15:57:12 -04:00
Jacob M-G Evans
edb2a58814
feat: rewrite Wrangler Action in TypeScript
* Removes dependencies such as Docker, decreasing spin-up time
* Adds community-requested features, including bulk secrets API utilization from Wrangler
* Fixes CI/CD
* Adds testing
* Improves command implementation
* Begins using Node for the Action engine/runner
* Openly discusses all changes with the community
  GitHub Discussions opened and Issues monitored

BREAKING CHANGES:
* Docker is no longer a dependency
* Wrangler v1 is no longer supported

Additional related Internal tickets:
Major Version Default: https://jira.cfdata.org/browse/DEVX-632
Rewrite Project: DEVX-804,802,800,632
2023-08-07 13:05:09 -05:00
Daniel Walsh
3d1979ca8e Support wrangler2 - v2.0.0 2022-05-09 11:49:03 +01:00
Joslin, Brady W (Brady)
176cda2c0e add ability to skip publish 2020-08-11 22:46:42 -05:00
Joslin, Brady W (Brady)
93b9408aec pre-post-commands 2020-08-07 16:36:37 -05:00
Joslin, Brady W (Brady)
3123fc538b add secrets publishing 2020-06-15 23:09:55 -05:00
Kristian Freeman
9e7e2ec6db It's wrangler-action 1.1.0! 📡
- Support `apiToken` as an authentication method
  - Deprecates `apiKey` and `email`, making them optional parameters and encouraging `apiToken` usage in build logs
- Support `wranglerVersion` for installing a specific Wrangler version for your build
- Per #7, support for `workingDirectory` to run `wrangler-action` in a specific directory in your repo
- Adds a test Workers project under the `test` directory. This is used in the repo's new set of workflows (see below)
- Adds a GitHub Action workflow that:
  - Lints `entrypoint.sh` to ensure that the shell script looks correct
  - Runs the action with various config options to ensure future pushes don't introduce regressions
2019-12-09 11:13:30 -06:00
Frank Shotwell
bc0254d9f8 Add workingDirectory option for publishing a subdirectory 2019-11-07 13:15:49 -08:00
Kristian Freeman
bdf9196cd6 Update action title and description 2019-10-15 11:18:29 -05:00
Kristian Freeman
f16a765f5b Add icon and color 2019-10-15 10:14:20 -05:00
Kristian Freeman
c09ecc83b5 Add environment support, change input names 2019-10-14 15:24:54 -05:00
Kristian Freeman
e4957e60c0 Correct usage of inputs in action/entrypoint 2019-10-14 15:04:41 -05:00
Kristian Freeman
c3eb4af3f6 Switch to inputs 2019-10-11 14:25:47 -05:00
Kristian Freeman
272a8e31ba Rename to action.yml 2019-10-07 15:15:42 -05:00
Renamed from deploy.yml (Browse further)